2016-01-22 92 views
-2

我最近在项目上执行了swift1.2到swift2的迁移,即使它在模拟器上运行,也不会存档或运行一个装置。Xcode 7.1 - 项目在模拟器中运行,但不会在设备上存档或运行

我目前正在开发Xcode 7.1。

当我走上舞台的“复制斯威夫特的标准库到的.app”我得到以下日志:

Copying libswiftFoundation.dylib from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos to /Users/ad/Library/Developer/Xcode/DerivedData/project-ghobukpaqwtprjdupmqhdhyqcqye/Build/Intermediates/ArchiveIntermediates/project/InstallationBuildProductsLocation/Applications/project.app/Frameworks /usr/bin/xcrun '--toolchain' '/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: error: unrecognized option: --toolchain

usage: xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk ] [-log] [-run] xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk ] -find *** error: Couldn't copy and strip bitcode /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/ad/Library/Developer/Xcode/DerivedData/project-ghobukpaqwtprjdupmqhdhyqcqye/Build/Intermediates/ArchiveIntermediates/project/InstallationBuildProductsLocation/Applications/project.app/Frameworks/libswiftFoundation.dylib: bitcode_strip failed with exit code 64

这可能有助于注意,我有残疾位码在项目构建设置,因为它没” t对我的项目似乎很有用,并且会在更早的时候停止构建。

+0

和即使禁用位代码后,你是否也得到这些相同的错误?另外,当你清理你的项目并重建时会发生什么? –

+0

无论是否启用位码,都会发生相同的错误。 清理和重建不会改变构建的结果:我仍然得到错误。 – nth

回答

0

我已更新到Xcode 7.2,它解决了错误。

相关问题