简体   繁体   English

xcode构建错误:swiftc失败,退出代码为1

[英]xcode build error: swiftc failed with exit code 1

Every time I tried to build the code getting the following error: 每当我尝试构建代码时,都会出现以下错误:

error log screenshot 错误日志截图

To create build always need to quit the xcode or clean the project for many times. 要创建构建,总是需要退出xcode或清理项目多次。 Looking for a permanent solution. 寻找永久解决方案。

You can try it by deleting derived data from Xcode -> Preferences -> Locations -> Derived data 您可以通过从Xcode->首选项->位置->派生数据中删除派生数据来进行尝试

Then clean the project and run. 然后清理项目并运行。

I just had this issue and its due to path references. 由于路径引用,我刚遇到了这个问题。 You cannot move folders or files in or out of the Xcode project once it's built. 构建完成后,您无法将文件夹或文件移入或移出Xcode项目。 . xcodeproj file should stay outside of the project folder. xcodeproj文件应位于项目文件夹之外。 If you're moving files around or copying folders, check .xcodeproj outside of the main project folder and verify that the folder and file structure is still intact. 如果要移动文件或复制文件夹,请在主项目文件夹之外检查.xcodeproj并验证文件夹和文件结构是否完好无损。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode:* / swiftc因退出代码11而失败,我该怎么办? - Xcode : */swiftc failed with exit code 11, what can I do? swiftc失败,错误代码为1 - swiftc failed with error code 1 转换为最新语法时出现错误“swiftc 失败,退出代码为 1” - ERROR “swiftc failed with exit code 1” when converting to latest syntax 错误:命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 - Error: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 Swift编译器错误:命令/Applications/Xcode9.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为6 - Swift Compiler Error : Command /Applications/Xcode9.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 6 错误 - 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 - Error — Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 xCode 6.2项目无法使用xCode 6.3和Swift 1.2存档(swiftc失败,退出代码为1) - xCode 6.2 project won't archive with xCode 6.3 and Swift 1.2 (swiftc failed with exit code 1) Xcode 10.0 错误“Command /Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码为 1” - Xcode 10.0 Error "Command /Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1" Xcode 8.0 命令 /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码为 1 - Xcode 8.0 Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 Xcode构建错误链接器命令失败,退出代码为1 - Xcode build error linker command failed with exit code 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM