SOLVED: Opening XCode project shows errors

I can run my project using ionic CLI with iOS emulator, but if I try to open the project Platforms/ios/projectname.xcodeproj it shows errors:

"Lexical or Preprocessor issue ‘Cordova/CDV.h’ file not found and "Lexical or Preprocessor issue ‘Cordova/CDVViewController.h’ file not found

image

I am using:
XCode: 6.1.1
OSx 10.10.1

latest ionic.

So why these errors? I want to manage my icon assets from XCode. How is emulator build working if I get these errors inside of XCode.

SOLVED: make sure the Xcode preference “Xcode Preferences → Locations → Derived Data → Advanced…” is set to “Unique”

1 Like