XcodeGen
XcodeGen copied to clipboard
Capabilities - In-App Purchase
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?
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