- Home /
Xcode project errors in Apple Classes
I'm having a strange issue - ever since upgrading to Xcode 6.2 (and now 6.3) I'm getting errors in Apple Classes when I open my Unity iOS project. The error appears multiple times (it gets to 58 then stops trying to build):
Parse Issue
Expected '=' after '__NSi_8_2'
It appears in Apple class header files:
NSProcessInfo.h
NSExtensionContext.h
UIFontDescriptor.h
UIFont.h
UIApplication.h
UILocalNotification.h
I've tried building the project using Unity 4.6.3, 4.6.4, 4.6.5 and 5.0, but it happens every time. If I go back to use Xcode 6.1 then the project builds with no errors.
Anyone have any ideas what could be happening here?
Do you use $$anonymous$$ono or IL2CPP backend? Does it build with a bare $$anonymous$$imum project, so e.g. a simple project? Do you use XCode manipulation API or similar to adapt the XCode project in a e.g. post process build?
Hi, thanks for replying. I've tried both $$anonymous$$ono and IL2CPP backends and get the same results with both. I tried to build the Survival Shooter sample project and don't get any errors. We don't use any APIs to modify the Xcode project, but do manually copy in some libraries and frameworks.
As the survival Shooter sample works properly I assume a library or framework might cause the problem. Which ones do you use? Can you add them one by one and see which one causes the problem?
Great, found the solution. I removed Foundation, CoreFoundation and UI$$anonymous$$it frameworks from the project, then re-added them and it worked. Presumably the project kept the iOS 8.1 versions from Xcode 6.1 which was incompatible with iOS 8.3/Xcode 6.3. Thanks for the help!!