I just created one new cordova ios project via CLI, and i opened that project in Xcode 7.1 and while running on simulator am getting some error on mainViewController.xib, if
Running Xcode 7.3.1, I had the same error message appear while editing a .xib file. Performance would stall, and Xcode often became unresponsive. Filed a bug report, and in the meantime came across this line of code in the .m file associated with the most problematic .xib:
NSString *check = [formatter stringFromDate:date];/
The "/" was not being flagged as an error, and the project had built and run many times with this in place. After removing the "/", performance improved dramatically, and the error message has only appeared a couple of times, briefly, since then and by now not for several days.
So far, this seems to be a case of a glitch in the debugger.
I'm in Xcode 7.3 and had the same issue after opening file in xCode 8.0. This worked for me:
Made a product/clean in Xcode, then quit Xcode and clean out all the content in ~/Library/Developer/Xcode/DerivedData manually.
Try this, it's work for me,
Updated NOTE: Mostly this error occurred when you have open 2 different version of Xcode at same time.
Solution: Please close both Xcode and clear derived data.now again try, use one Xcode at a time.
OR
Follow below mention steps ,
1) Trash derived data by two ways either by command or Preferences.
rm -rf ~/Library/Developer/Xcode/DerivedData/
OR
Xcode---> Preferences--->Location--->Derived Data
2) In Xcode menu go to product clear the project.
3) Disconnect connected device and restart Xcode and system .
follow above steps error will remove.
Hope it's helpful for some one.
Also happens when you declare non-swift/wrong data types like Long, boolean etc. So stupid.
I was getting this error on Xcode 11.4. I tried all of the above suggestions and none of them worked. I am posting my fix in case it will help someone else. I was using the legacy build system for my project since I had options that were not yet supported with the latest build system. Xcode 11.4 now supports those options. I the value for BuildSystemType
to Latest
in all of WorkspaceSettings.xcsettings files and then this error went away.
<key>BuildSystemType</key>
<string>Latest</string>
I just had this issue today and it really got me frustrated for awhile. First I got the error "unable to boot the simulator" and I couldn't load the simulator and then my storyboard started doing this and I got an internal error.
I tried the other solutions mentioned here including cleaning and rebuilding, deleting the DerivedData folder but none worked. I upgraded my OS to Sierra and that solved the problem for me.
Hope it helps.