sphero-inc / Sphero-AR-SDK

🚫 DEPRECATED: Sphero's augmented reality SDK
46 stars 26 forks source link

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

Open drjeffnorris opened 10 years ago

drjeffnorris commented 10 years ago

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 commented 10 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.