All of a sudden I can\'t build my project. I get the following compiler error:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.pl
Few have mentioned that the problem was related to segues, mine was too, although it did not pop up immediately after i added the new segue and i was able to run the app a few times make some changes, add new views before it occurred, so don't disregard this. I went deleting some of the controllers and undoing in case it didn't help. If a segue is the issue you may build but you wont be able to add that segue, so re-create the entire view controller if it's a viable option. Copying and pasting didn't seem to work, though i did not try removing the IBOutlet connections.
I go this error, and after scanning the crash log I noticed out my Xcode-7 build was trying to use the build tools from Xcode-8 Beta. I had previously used xcode-select to change the version of the build tools I wanted to use. If you have a xcode-beta install, check your settings using the commands below:
Show which build tool path is set:
xcode-select -p
Select the standard Xcode path:
sudo xcode-select -s /Applications/Xcode.app/
If you're trying to build with an Xcode at different installation path, be sure the path above reflects that.
I faced same issue when i merge code form git with other developer code. i tried many time to clean my project. But nothing help me out.
I open storyboard in source code. Start comparing with last working repositories storyboard. Then i found a same label appear two time in same screen. then i remove one of then and save. It helps me.
you can check your xib or storyboard.
I had something similar happen to me too using Xcode 8.2.1 and iOS 10.2.
I switched to an earlier device version on the simulator and it worked. Then I switched back and it was fixed.
Just clean build your project. you'll get Solved!
In my case, I had this issue after I manually resolved a merge conflict in the "project.pbxproj" file. In XCode, select project->target->BuildPhases->CopyBundleResources. There I removed some duplicate files that were showing up in blank icons (unlike the XIB file icons). AFter this, the build went well without issues.