- Home /
iOS: Upgraded OS x and Unity and Xcode and now game won't compile in Xcode?
I was on snow leopard, Unity 3.4, and Xcode 4.0 and developing for iPhone.
My game ran fine on this release of Unity and the game would compile in Xcode and run on my iPod Touch.
I did a mass upgrade to Lion, Unity 3.5.4, and Xcode 4.3.3.
My game runs fine in the updated Unity. But when I compile to Xcode I am getting a lot of errors (compiler stops counting at 201).
I've set iOS 5.1 every where I can find (in Unity and in Xcode) but I must be missing some setting.
Below is a sample of the errors I am seeing. Can anyone help and suggest what setting I might be missing or what action I need to take to solve these compile errors?
Thank you for any help.
ld: warning: ignoring file /Users/untitled/Unity3/WhiteCorpuscleWars/WCW/Libraries/libiPhone-lib.a, missing required architecture i386 in file Undefined symbols for architecture i386: "UnityUse32bitDisplayBuffer()", referenced from: CreateWindowSurface(EAGLView*, unsigned int, unsigned int, unsigned int, bool, EAGLSurfaceDesc*) in AppController.o OpenEAGL_UnityCallback(UIWindow*, int, int*, int*) in AppController.o AfterPresentSurfaceGLES(EAGLSurfaceDesc*) in iPhone_GlesSupport.o "UnityGetTargetResolution()", referenced from: CreateSurface(EAGLView*, EAGLSurfaceDesc*) in AppController.o "UnitySetInputScaleFactor(float)", referenced from: CreateSurface(EAGLView*, EAGLSurfaceDesc*) in AppController.o "UnityFinishRendering()", referenced from: DestroySurface(EAGLSurfaceDesc*) in AppController.o HandleOrientationRequest() in AppController.o -[AppController Repaint] in AppController.o -[UnityViewController didRotateFromInterfaceOrientation:] in AppController.o "UnityGetShowActivityIndicatorOnLoading()", referenced from: CreateActivityIndicator(UIView*) in AppController.o "UnityIsRenderingAPISupported(int)", referenced from: OpenEAGL_UnityCallback(UIWindow*, int, int*, int*) in AppController.o "UnityGetDesiredMSAASampleCount(int)", referenced from: OpenEAGL_UnityCallback(UIWindow*, int, int*, int*) in AppController.o AfterPresentSurfaceGLES(EAGLSurfaceDesc*) in iPhone_GlesSupport.o "UnityRequestedScreenOrientation()", referenced from: ShouldHandleRotation(ScreenOrientation*) in AppController.o -[UnityViewController shouldAutorotateToInterfaceOrientation:] in AppController.o
When you build do you replace everything?
Hmm I have 3.5.3f3 and my Unity reckons to be up to date.
Yes I did. I deleted the Xcode build directory from Unity and redid the 'Build & Run' and got the same errors.
Any additional info I should provide that might help bring the issue out?
Don't bump questions. People sleep.
Please confirm your version of Unity.
I have downloaded the latest Unity as part of my upgrade and it is 3.5.4f1. I also moved to Lion and Xcode 4.3.3.
Sorry for bumping but I am tense that my game no longer compiles in Xcode! :-) & :-(
Answer by rsud · Jul 26, 2012 at 03:03 PM
The problem here was with the simulator.
Once I got my iPhone 4s provisioned (an adventure all on its own!) I was able to compile my game and run it on the iPhone.
So dunno why the simulator would not work but my problem is resolved now that I have my iPhone connected to Xcode.
Your answer
Follow this Question
Related Questions
Compiling in Xcode? 0 Answers
A node in a childnode? 1 Answer
XCode errors 1 Answer