Unity 4.3 - Won't Build in Xcode : __curOrientation

I’ve literally just upgraded my Unity to 4.3 and now I keep getting an error in Xcode when I try and build my app to my iPhone:

Undefined symbols for architecture
armv7: “__curOrientation”,
referenced from:
-[UnityAppController application:didFinishLaunchingWithOptions:]
in UnityAppController.o ld: symbol(s)
not found for architecture armv7
clang: error: linker command failed
with exit code 1 (use -v to see

Anyone have any ideas what might be causing this? (I’m also running the most up to date version of xcode 5.0.2)

For anyone else with this error, you need to find the 'iPhone_View.mm and change:

static ScreenOrientation _curOrientation = orientationUnknown;


ScreenOrientation _curOrientation = orientationUnknown;

And everything should work fine again.

Thanks a lot - exactly the problem I just encountered with Unity 4.3.0f4.

Solved by changing the generated code as described above.

me too, thank you very much… weird bug though!