About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
IOS debug on Device with free provisioning profile
Author Message
alkirah Offline
Member

Post: #1
IOS debug on Device with free provisioning profile
Trying to get a tutorial working on actual device (iPhone 5s) and xcode returns an error : "The In-App Purchase feature is only available to users enrolled in Apple Developer Program.
Please visit https://developer.apple.com/programs/ to enroll.

Apple doesn't requires an active dev account to debug on device now. Is there a flag (#define) needed to "remove" the in app purchase module from engine?

Any way to test some esenthel code on device without a Dev account?

Thanks
09-02-2016 01:01 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: IOS debug on Device with free provisioning profile
When you have the project opened in Xcode, you could try removing the in app purchase option from project settings, although I've never tried that.
09-02-2016 02:15 AM
Find all posts by this user Quote this message in a reply
alkirah Offline
Member

Post: #3
RE: IOS debug on Device with free provisioning profile
The in app purchase isn't available with the free provisioning profile Under project settings/capabilities so I can't turn that off.

I tried removing the StoreKit.framework and commenting the #include "Net/Store.h" from esenthel.h but it's not working.

Thanks for the reply though, I really appreciate you took the time to answer.

OK I managed to fix this! Thanks to some chinese website.

You basicly need to open Project.xcodeproj/project.pbxproj using some text editor and edit that line

SystemCapabilities = {
com.apple.InAppPurchase = {
enabled = 1;
};
};

to that

SystemCapabilities = {
com.apple.InAppPurchase = {
enabled = 0;
};
};

Then reopen in xcode and free provisioning profile will work.

App won't start at first since you need to add the developer certificate to your trust list from settings/general/device management.
(This post was last modified: 09-02-2016 05:20 AM by alkirah.)
09-02-2016 04:47 AM
Find all posts by this user Quote this message in a reply
Post Reply