Search code examples
xcodeios8in-app-billingcordova-plugins

Cordova Inapp Purchase iOS 8


After including the iOS In App Purchase plugin, I am now getting the follow compilation error on X-code 6:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_SKProduct", referenced from:
      l_OBJC_$_CATEGORY_SKProduct_$_LocalizedPrice in SKProduct+LocalizedPrice.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is this a problem with the plugin on iOS 8 or is it a config problem?


Solution

  • It would appear that the Xcode project was missing the libraries for IAP. Adding them fixed the issue and it now compiles fine.