生成的xcframework无法使用
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
编译步骤:
1、设置Build Libiraries for Distribution 为true
2、用xcode12环境下使用carthage命令去生成xcframwork,命令如下:carthage build --no-skip-current --use-xcframeworks
3、在xcode13引用handyjson,编译报错。信息如下:
Failed to build module 'HandyJSON'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which matches the SDK.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue by running `carthage build --no-skip-current --use-xcframeworks` with Xcode 12, then importing the generated xcframework in Xcode 13. Start by comparing the Swift compiler versions in the reported error and determine whether the artifact can be made compatible across these toolchains; done means HandyJSON builds successfully in Xcode 13.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100