Open drjeffnorris opened 11 years ago
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.
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