我已经切换到Xcode12
我的一个静态库应用程序。我正在尝试制作 XCFramework 分发。运行构建命令后,
xcodebuild archive -scheme "MySDK" -sdk iphoneos -archivePath “./archives/ios.xcarchive” -SKIP_INSTALL=NO
当我切换Build Settings -> Build Libraries for Distribution
到时,我遇到了错误YES
,
<unknown>:0: error: using bridging headers with module interfaces is unsupported
Command CompileSwiftSources failed with a nonzero exit code
** ARCHIVE FAILED **
The following build commands failed:
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
CompileSwiftSources normal armv7s com.apple.xcode.tools.swift.compiler
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(3 failures)
这个答案有效,但不幸.xcframework
的是创建需要设置选项分布YES
。
如何解决这个问题?