Reputation: 830
I'm trying to test my app on an iPad / iPhone.
I've not registered for the developer program yet. I do have an appleId
, was waiting until the app was more or less ready before I enrolled in the program.
Anyway, when I try to run the app I just get told that
The 'In-App Purchase' feature is only available to users enrolled in Apple Developer Program. Please visit
https://developer.apple.com/programs/ to enroll
I know there is some setting somewhere for me to turn off in-app purchases, just not sure where it is? I've scoured most of the settings pages, run searched etc. and just cant seem to get past this?
edit: heres my capabilities tab in my xcode project settings.
Upvotes: 10
Views: 14877
Reputation: 101
If nothing helps, you can edit YourProject.xcodeproj/project.pbxproj file and remove all strings containing StoreKit
and
com.apple.InAppPurchase = {
enabled = 1;
};
Upvotes: 10
Reputation: 1197
For anyone who's coming across the same problem, this issue arises when you 1) previously had a developer account which expired and 2) you had in-app purchases enabled.
The solution is to go to click on the main project root in the left side panel which should reveal the project properties. Scroll to the bottom and there is a Linked Frameworks and Libraries. Remove the StoreKit.framework, go to Signing, disable the 'Automatically manage signing' option and enable it again. If needed, set your Team to 'None' and set it back to your Personal Development Team, which should trigger the automatic provisioning mechanism.
Upvotes: 29
Reputation: 53
Hit the toggle in the Capabilities section and you should be good to go!
Upvotes: 0
Reputation: 830
I fixed this by changing the provisioning profile in the project settings!
It was set to auto, changed it a provisioning profile containing my app name, all working now.
Upvotes: 1
Reputation: 350
You question isn't clear enough.
Check the image below to turn off In-App Purchase.
Upvotes: -1