Swift stdlib工具错误:预计单个Swift ABI版本

时间:2017-07-27 09:04:08

标签: xcode xcode8

我在使用Xcode 8.3.3(8E3004b)和Swift 3.1进行编译时收到此错误:

error message

编译日志的结尾如下:

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编译时,我没有这个错误,而且,我可以在今天之前建立成功。

希望有人可以提供帮助。

2 个答案:

答案 0 :(得分:5)

这是一个迦太基问题。这里讨论的是:issue #2062

我使用的解决方法是打开:~/Library/Caches/org.carthage.CarthageKit/并在执行其他操作之前删除所有内容carthage update

答案 1 :(得分:0)

我发现我重启了我的Mac并且问题已经消失,希望这可以帮助某人。

但我仍然不知道问题是什么,所以仍然在寻找解释,如果有人知道原因,请告诉我。