0

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. Looking for a permanent solution.

Cœur
  • 37,241
  • 25
  • 195
  • 267
ayushi
  • 11
  • 2
  • can you show snippet of your code? It looks some issue with your source code – iamdeowanshi Sep 27 '17 at 17:54
  • 1
    Possible duplicate of [ERROR swiftc failed with exit code 1](https://stackoverflow.com/questions/38496582/error-swiftc-failed-with-exit-code-1) – dandan78 Jul 13 '18 at 12:55

2 Answers2

0

You can try it by deleting derived data from Xcode -> Preferences -> Locations -> Derived data

Then clean the project and run.

Nuzhat Shaikh
  • 29
  • 1
  • 4
0

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. . xcodeproj file should stay outside of the project folder. 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.

Kevin Morris
  • 115
  • 1
  • 1
  • 9