[英]xcode build error: swiftc failed with exit code 1
Every time I tried to build the code getting the following error: 每当我尝试构建代码时,都会出现以下错误:
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.