我最近在项目上执行了swift1.2到swift2的迁移,即使它在模拟器上运行,它也不会在设备上存档或运行。
我目前正在开发Xcode 7.1。
当我到达“将Swift标准库复制到.app”阶段时,我得到以下日志:
从中复制libswiftFoundation.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos 至 /Users/ad/Library/Developer/Xcode/DerivedData/project-ghobukpaqwtprjdupmqhdhyqcqye/Build/Intermediates/ArchiveIntermediates/project/InstallationBuildProductsLocation/Applications/project.app/Frameworks / usr / bin / xcrun' - 工具链' '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain' 'bitcode_strip' '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib' '-r'' - o' '/Users/ad/Library/Developer/Xcode/DerivedData/project-ghobukpaqwtprjdupmqhdhyqcqye/Build/Intermediates/ArchiveIntermediates/project/InstallationBuildProductsLocation/Applications/project.app/Frameworks/libswiftFoundation.dylib' xcrun:错误:无法识别的选项: - toolchain
用法:xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk] [-log] [-run] xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk] - 找到 ***错误:无法复制和删除bitcode /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib 至 /Users/ad/Library/Developer/Xcode/DerivedData/project-ghobukpaqwtprjdupmqhdhyqcqye/Build/Intermediates/ArchiveIntermediates/project/InstallationBuildProductsLocation/Applications/project.app/Frameworks/libswiftFoundation.dylib: bitcode_strip失败,退出代码为64
可能有助于注意我在项目构建设置中禁用了bitcode,因为它对我的项目似乎没有用,并且会在更早的时候停止构建。
答案 0 :(得分:0)
我已更新到Xcode 7.2并解决了错误。