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 we clicked on that error its showing xib file and on top of that showing one warning message "An internal error occurred. Editing functionality may be limited" . So am unable to run this project.
I don't know whether this is due to Xcode bug or cordova bug or any other settings issue in my Xcode.
I had this issue and clearing derived data folder fixed the issue for me
Preferences > Locations > Derived Data > click the arrow to open in Finder > trash it.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With