File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Sources/XKit/DeveloperServices/App IDs Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,13 @@ public struct DeveloperServicesAddAppOperation: DeveloperServicesOperation {
104104 . ok
105105 }
106106 } else {
107- _ = try await context. developerAPIClient
108- . bundleIdCapabilitiesDeleteInstance ( path: . init( id: cap. id) )
109- . noContent
107+ // DeveloperServices doesn't allow deleting these capabilities
108+ let requiredCapabilities : Set < Components . Schemas . CapabilityType > = [ . inAppPurchase]
109+ if let capType = cap. attributes? . capabilityType, !requiredCapabilities. contains ( capType) {
110+ _ = try await context. developerAPIClient
111+ . bundleIdCapabilitiesDeleteInstance ( path: . init( id: cap. id) )
112+ . noContent
113+ }
110114 }
111115 }
112116 for (typ, settings) in wantedCapabilities {
You can’t perform that action at this time.
0 commit comments