I created a cocos2d-x JS project and successfully compiled it on Xcode 8 but after adding IAP plugin got link error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SKProductStorePromotionController", referenced from:
objc-class-ref in PluginIAP(IAPWrapper-D2E44C5717C6209A.o)
"___isOSVersionAtLeast", referenced from:
sdkbox::IAPWrapperEnabled::fetchStorePromotionOrder() in PluginIAP(IAPWrapper-D2E44C5717C6209A.o)
sdkbox::IAPWrapperEnabled::updateStorePromotionOrder(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in PluginIAP(IAPWrapper-D2E44C5717C6209A.o)
sdkbox::IAPWrapperEnabled::fetchStorePromotionVisibility(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in PluginIAP(IAPWrapper-D2E44C5717C6209A.o)
sdkbox::IAPWrapperEnabled::updateStorePromotionVisibility(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in PluginIAP(IAPWrapper-D2E44C5717C6209A.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But I didn’t get such an error on Xcode 9.