tuist / tuist

Tuist's CLI
https://tuist.io
MIT License
4.57k stars 553 forks source link

In-App Purchases capability getting removed after project regenration #6650

Closed GitNirajHub closed 2 months ago

GitNirajHub commented 2 months ago

What happened?

According to https://github.com/tuist/tuist/issues/3431

I have added

.sdk(name: "StoreKit.framework", type: .framework),

In the project definition

How do we reproduce it?

Add the capability manually in xcode, and run tuist generate

Error log

On completion from the capabilities tab the in app purchase is getting removed.

macOS version

14.4.1 (23E224)

Tuist version

4.20.0

Xcode version

15.4.0

fortmarek commented 2 months ago

Add the capability manually in xcode, and run

Nothing done via the Xcode GUI is preserved across project generations. Everything needs to be done in the Tuist manifests which are the source of truth. In this case, capabilities are configured via entitlements

GitNirajHub commented 2 months ago

@fortmarek

I am aware that the changes made in GUI are not supposed to persist and it should be driven by manifest files.

The problem that i am facing is, that i am unable to find any record in entitlement that corresponds to In - app purchase, i have followed the conversation in: https://github.com/tuist/tuist/issues/3431

And as it mention this solution worked, i had created the issue, can you let me know if you are aware of exact entitlement that i may need to add in entitlements to get this working.