XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Capabilities - In-App Purchase

Open kpacholak opened this issue 6 months ago • 1 comments

Hi! I'm struggling with adding the "In-App Purchase" capability to the project file. As far as I know it's not the feature we can add to .entitlements file.

<key>com.apple.developer.in-app-purchase</key>
<true/>

☝️ this doesn't work

I tried adding it to project.yml config file

capabilities:
   inAppPurchase: {}

☝️ also doesn't work

Any ideas?

kpacholak avatar Aug 05 '25 13:08 kpacholak

The best way to get answers for these questions is to temporarily remove the project from git ignore, stage the changes, and then do something in Xcode to see the diff (like add a capability).

In this case it seems adding that capability just adds the Storekit framework, which you can add to your dependencies:

targets:
    myapp:
        dependencies:
        - framework: StoreKit.framework

Xcodegen doesn't have any capabilities abstractions like Xcode does

yonaskolb avatar Aug 06 '25 01:08 yonaskolb