Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to generate xcframework #357

Closed
breno-unspun opened this issue Aug 16, 2024 · 1 comment
Closed

Failure to generate xcframework #357

breno-unspun opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels

Comments

@breno-unspun
Copy link

Describe the bug
The command ./build.sh is crashing

To Reproduce
Steps to reproduce the behavior:

  1. install mint
  2. install unsignedapps/swift-create-xcframework
  3. run ./build.sh

output:

Removing old files ...
Building XCFrameworks ...
warning: unable to restore workspace state: unknown 'WorkspaceStateStorage' version '6' at '***/analytics-swift/.build/workspace-state.json'
debug: evaluating manifest for 'analytics-swift' v. unknown
error: missingKey("product_type")
debug: evaluating manifest for 'analytics-swift' v. unknown
error: missingKey("product_type")
Error: fatalError
Done.

Platform:

  • Library Version in use: 1.5.11
  • Platform being tested: iOS
  • Integrations in use: -

Additional context
I had change the swift-tools-version in the package.swift file to 5.7.
Before making this change I was getting the following error:

Removing old files ...
Building XCFrameworks ...
warning: unable to restore workspace state: unknown 'WorkspaceStateStorage' version '6' at '***/analytics-swift/.build/workspace-state.json'
error: package 'analytics-swift' is using Swift tools version 5.9.0 but the installed version is 5.7.0
error: package 'analytics-swift' is using Swift tools version 5.9.0 but the installed version is 5.7.0
Error: fatalError
Done.

Installed versions:

$ swift --version
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0

$ which swift
/usr/bin/swift

$ mint --version
Version: 0.17.5

$ swift create-xcframework --version
2.3.0
@bsneed
Copy link
Contributor

bsneed commented Aug 22, 2024

use the package here instead of the mint-based one. https://github.com/segment-integrations/swift-create-xcframework

I'll update this script the future. it wasn't expected that customers use that script since xcframeworks are uploaded as part of the release.

@bsneed bsneed closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants