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

前端之家收集整理的这篇文章主要介绍了xcode – Swift stdlib工具错误:预计单个Swift ABI版本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在使用 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编译时,我没有这个错误,我也可以在今天之前建立成功.

希望有人能提供帮助.

解决方法

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

我使用的解决方法是打开:〜/ Library / Caches / org.carthage.CarthageKit /并在执行另一个carthage更新之前删除所有内容

猜你在找的Xcode相关文章