dyatesupnorth
dyatesupnorth

Reputation: 830

Turn off in-app purchases on xcode

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.

xcode project settings

Upvotes: 10

Views: 14877

Answers (5)

Victor Maiorov
Victor Maiorov

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

zephinzer
zephinzer

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

Declan Conway
Declan Conway

Reputation: 53

Hit the toggle in the Capabilities section and you should be good to go!

Upvotes: 0

dyatesupnorth
dyatesupnorth

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

Ziad Tamim
Ziad Tamim

Reputation: 350

You question isn't clear enough.

Check the image below to turn off In-App Purchase.

enter image description here

Upvotes: -1

Related Questions