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

查看:1878
本文介绍了Xcode 6.0.1命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为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.


  1. 打开项目并单击项目根目录。

  2. 单击构建设置选项卡。

  3. 搜索 Swift编译器 - 代码生成,并在优化级别下确保发布设置为的即可。

  1. Open up your project and click on the projects root directory.
  2. Click the build settings tab.
  3. 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆