Swift stdlib tool Error: Expected a single Swift ABI version in
Swift stdlib tool Error: Expected a single Swift ABI version in
我在使用 Xcode 8.3.3(8E3004b) 和 Swift 3.1:
编译时遇到此错误
编译日志的结尾如下所示:
Copy Swift standard libraries into app
CopySwiftLibs /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/...
cd /Users/.../Desktop/...
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
builtin-swiftStdLibTool --copy --verbose --sign 5E5A51CAC2539864509F6653B0DC104FE3A518D1 --scan-executable /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../... --scan-folder /Users/jpower/Library/Developer/Xcode/DerivedData/TAFIPS-cdqhmsienumzxcdzytsdwwwawavl/Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../Frameworks --scan-folder /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../PlugIns --scan-folder /Users/.../Desktop/.../Carthage/Build/iOS/Alamofire.framework --scan-folder /Users/.../Desktop/.../Carthage/Build/iOS/ObjectMapper.framework --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../Frameworks --unsigned-destination /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../BuildProductsPath/SwiftSupport
奇怪的是我用Xcode 9.0 beta(9M136h) 和Swift 3.2 编译时没有这个错误,而且,我可以在今天之前构建成功。
希望有人能提供帮助。
我发现我重新启动 Mac 并且问题消失了,希望这可以帮助某人。
但是我还是不知道是什么问题,所以还在寻找解释,如果有人知道为什么,请告诉我。
这是迦太基问题。在这里讨论:issue #2062
我使用的解决方法是打开:~/Library/Caches/org.carthage.CarthageKit/
并删除所有内容,然后再执行另一个 carthage update
我在使用 Xcode 8.3.3(8E3004b) 和 Swift 3.1:
编译时遇到此错误编译日志的结尾如下所示:
Copy Swift standard libraries into app
CopySwiftLibs /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/...
cd /Users/.../Desktop/...
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
builtin-swiftStdLibTool --copy --verbose --sign 5E5A51CAC2539864509F6653B0DC104FE3A518D1 --scan-executable /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../... --scan-folder /Users/jpower/Library/Developer/Xcode/DerivedData/TAFIPS-cdqhmsienumzxcdzytsdwwwawavl/Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../Frameworks --scan-folder /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../PlugIns --scan-folder /Users/.../Desktop/.../Carthage/Build/iOS/Alamofire.framework --scan-folder /Users/.../Desktop/.../Carthage/Build/iOS/ObjectMapper.framework --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../InstallationBuildProductsLocation/Applications/.../Frameworks --unsigned-destination /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates/ArchiveIntermediates/.../BuildProductsPath/SwiftSupport
奇怪的是我用Xcode 9.0 beta(9M136h) 和Swift 3.2 编译时没有这个错误,而且,我可以在今天之前构建成功。
希望有人能提供帮助。
我发现我重新启动 Mac 并且问题消失了,希望这可以帮助某人。
但是我还是不知道是什么问题,所以还在寻找解释,如果有人知道为什么,请告诉我。
这是迦太基问题。在这里讨论:issue #2062
我使用的解决方法是打开:~/Library/Caches/org.carthage.CarthageKit/
并删除所有内容,然后再执行另一个 carthage update