我最近在項目上執行了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對我的項目似乎很有用,並且會在更早的時候停止構建。
和即使禁用位代碼後,你是否也得到這些相同的錯誤?另外,當你清理你的項目並重建時會發生什麼? –
無論是否啓用位碼,都會發生相同的錯誤。 清理和重建不會改變構建的結果:我仍然得到錯誤。 – nth