Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Doesn't work with Unity 4.2.2 / Xcode 5.0 #2

Open
drjeffnorris opened this issue Nov 11, 2013 · 1 comment
Open

Doesn't work with Unity 4.2.2 / Xcode 5.0 #2

drjeffnorris opened this issue Nov 11, 2013 · 1 comment

Comments

@drjeffnorris
Copy link

Hi - I'd really like to use this, but I can't get the examples to build with Unity 4.22 and Xcode 5.0. There's a trivial change of AppController.h to UnityAppController.h but some very non-trivial problems during linking. Here's the one that I'm currently blocked on:

Undefined symbols for architecture armv7:
"_sMotionManager", referenced from:
-[ARUNBridge_iOS initializeEngineWithCameraMode:] in ARUNBridge.o
ld: symbol(s) not found for architecture armv7

@ghost
Copy link

ghost commented Nov 12, 2013

There can only be one CMMotionManager, but Unity hides it in their template code they generate. With Unity 4 they started declaring sMotionManager static so a symbol isn't generated for it. You can fix this by deleting the "static" qualifier, so a symbol is generated by the compiler. sMotionManager is defined in iPhone_Sensors.mm.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant