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:
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.
Question: why am I getting this error message and how I can fix it?
I have reinstalled El Capitan, xcode 7.2 and the necessary libraries (ionic, gulp, ..) and everything works fine now.
Curious...
I had the same problem, and it was caused by a different format of Xcode project file. If the project is compiled with the old Xcode, the new one cannot not open it.
I suggest you to remove any build file to make sure that next time project is really compiled, and if problem persist, remove also the old version of Xcode, because it looks like it is the one used to compile the project.
Alternatively, maybe ionic CLI has some option to select which Xcode it should use.
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