(solved) Adding SDKBOX IAP to a project using precompiled libs

Adding SDKBOX IAP to a project using precompiled libs - how??

I have basically deleted the coocs2d-3.8.1 folder, well except the .h files that are used for API reference in my project.

Things don’t really make sense from there, where the installer asks for a cocos2d console root folder. I don’t “install” cocos2d on my computer, I just add it to my projects… kind of thinking. Because I do have many projects, some of which use older cocos2d-x versions.


FWIW, I installed cocos2d-x-3.8.1 again using setup.py, so that it created the COCOS_CONSOLE_ROOT env var to that path.
Then:

mjgmbp:sdkbox_installer me$ sdkbox import iap


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright (c) 2015 Chukong Technologies Inc. v0.5.7.13
no supported projects to import into
Installation failed :frowning:

You might wanna try doing the integration manually yourself first. It is much faster than waiting for answers. The things which you need to do for manual installation typically do not take more than 10 minutes.

I was confused first, but I just got the manual installation working! Thanks anyway! Actually I am a bit puzzled that this would need an installer, for iOS. Manual installation is easy. I guess it’s a bit tougher for Android.

Ugh, right now I don’t get any prices for the products. Using iOS app store… I’ve seen this problem before, but on Android - usually solved that by called refresh a few more times. But now on iOS it’s consistent, there are no prices at all in the sdkbox::Product objects. Everything is just price “0”. Unless there is an unlikely bug with iTunes Appstore, that’s a bug in SDKBOX??

Can be that you have wrong bundle id in project which not matching itunes connect or maybe you have wronng development certeficate

I think I got it. Using a new iTunes Connect account that didn’t have all details like bank account set up. That is probably the issue.

ensure that you item id’s from Connect are in the sdkbox_config.json

Finally all contracts were fixed and now everything works. To be exact, the IAP items in iTC do not have to be 100% ready, they can be in Waiting for screenshot status and it will work on dev builds.