Ios – xcode “The file couldn’t be opened”

ioniciosxcodexcode7

I am using ionic to develop an app and everything had been working fine for some time.

However, I have recently updated to xcode 7.x so that I can compile for iOS 9. Now, when I run ionic prepare ios to generate the ios platform files and click on the *.xcodeproj file, I get the following error:

enter image description here

The file couldn't be opened.

The file can open just fine in xcode 6.x

I need it to work in xcode 7.x for the app to build with later SDK versions

Side note: I have searched for answers to this issue but in other cases the error message is more descriptive. The error message I get does not give a reason why it cannot be opened, be it permissions or parsing issues or otherwise, so I am stumped as to how to fix this. I have tried deleting (null) lines in files and deleting my <user>.xcuserdatad files as suggested in these answers anyway to no avail.

  • Cordova CLI: 5.4.1
  • Gulp version: CLI version 3.9.0
  • Gulp local: Local version 3.9.0
  • Ionic Version: 1.1.0
  • Ionic CLI Version: 1.7.12
  • Ionic App Lib Version: 0.6.5
  • ios-deploy-version: Not installed
  • ios-sim version: 5.0.4
  • OS: Mac OS X El Capitan
  • Node Version: v4.2.4
  • Xcode Version: Xcode 7.2 Build version 7C68

Question: why am I getting this error message and how I can fix it?

Best Answer

I have reinstalled El Capitan, xcode 7.2 and the necessary libraries (ionic, gulp, ..) and everything works fine now.

Curious...