Xcode 6.0.1命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 [英] Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
问题描述
请帮我解决错误。
我陷入困境,尝试解决错误但对我不起作用。
I am stuck badly, tried solving the error but didn't work for me.
需要帮助....
请看屏幕截图。
我在归档时遇到此错误。
I am getting this error on archive.
推荐答案
当 Swift优化级别未设置为无<时,会出现此问题/ strong>用于发布。将值设置为无,问题就会消失。
This problem occurs when the Swift optimization level is not set to None for Release. Set the value to None and the issue goes away.
- 打开项目并单击项目根目录。
- 单击构建设置选项卡。
- 搜索 Swift编译器 - 代码生成,并在优化级别下确保发布设置为的无即可。
- Open up your project and click on the projects root directory.
- Click the build settings tab.
- Search for Swift Compiler - Code Generation and under Optimization Level make sure Release is set to None.
编辑
升级到Xcode后6.1归档时这些指令引起了其他问题(构建调试/设备工作正常)。将优化设置为Fastest允许我再次存档。 Swift编译仍存在明显问题(具体归档)。
After upgrading to Xcode 6.1 these instructions caused other issues when archiving (building for debug/device worked fine). Setting the optimization to Fastest allowed me to archive again. There are apparent issues with Swift compiling still (archiving specifically).
无法归档工作6.0.1 Xcode 6.1 /分段故障中的Swift项目:11
编辑
在阅读此答案之前,我无法为Build Settings选项卡提供资金。
EDIT I was not able to fund the Build Settings tab, until I read this answer.
这篇关于Xcode 6.0.1命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!