Start a new topic

SimpleIRWorld example crashes on first line in createTracker() function

SimpleIRWorld example crashes on first line in createTracker() function

2013-04-24 20:24:41.996 WamAR Received Event: deviceready
2013-04-24 20:24:44.828 WamAR -: unrecognized selector sent to instance 0x1edaa150
2013-04-24 20:24:44.830 WamAR *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-: unrecognized selector sent to instance 0x1edaa150'
*** First throw call stack:
(0x344b12a3 0x3c1d997f 0x344b4e07 0x344b3531 0x3440af68 0x1a76f7 0x1a7875 0x1a7267 0x3c5f111f 0x3c5f4ecf 0x3c5f4dc1 0x3c5f591d 0x3c5f5ac1 0x3c625a11 0x3c6258a4)
libc++abi.dylib: terminate called throwing an exception


Getting that error on first line of createTracker() JS function within SimpleIRWorld.html.

And then this shows.



Xcode Version: Version 4.6.1 (4H512)

Cordova/PhoneGap Version: 2.5


You forgot to add the -ObjC linker flag. Please read the iOS documentation how to setup your project properly.


Best regards


I didn't actually. Check it out:



Here is what I have for both Debug and Release:

Debug: -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load $(BUILT_PRODUCTS_DIR)/libCordova.a -Obj-C

Relase: -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load $(BUILT_PRODUCTS_DIR)/libCordova.a -Obj-C

Could it be that I didn't properly add Vuforia to the project?  The instructions aren't very clear and the instructions on the Vuforia website seem like way different.  Since the SimpleIRWorld example doesn't build, I just used my project and added that code and those images from that, like so:


I figured it out.  My friend noticed that I had -Obj-C instead of -ObjC.  I don't know if it was already like that or if I had put it in there like that.  Nevertheless, then all I needed to do was add/link the IR Extension library (libExtensionVuforia.a) to my project.

Thanks for helping.
Login or Signup to post a comment