Skip to content

Commit

Permalink
Apple: adding provisioning profile if iCloud was manually added
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchvova committed Oct 6, 2023
1 parent 685b98d commit 237f860
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions platform/resources/CoronaPListSupport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function CoronaPListSupport.generateEntitlements( settings, platform, provisionP
t["com.apple.developer.icloud-container-identifiers"] = cloudKitContainers
t["com.apple.developer.icloud-container-environment"] = ppEnt["com.apple.developer.icloud-container-environment"]
-- Apple doesn't accept to app store with Development container env. even if it is in provisioning profile
if ppEnt["com.apple.developer.aps-environment"]=="production" or ppEnt["aps-environment"]=="production" then
if ppEnt["com.apple.developer.aps-environment"] or ppEnt["aps-environment"]=="production" then
t["com.apple.developer.icloud-container-environment"] = {"Production",}
end
iCloudEnabled = true
Expand All @@ -627,7 +627,15 @@ function CoronaPListSupport.generateEntitlements( settings, platform, provisionP
end

if platformSettings and platformSettings.entitlements then
ret = ret .. CoronaPListSupport.valueToPlistEntry(platformSettings.entitlements)
local pe = platformSettings.entitlements
if pe["com.apple.developer.icloud-container-identifiers"]
or pe["com.apple.developer.ubiquity-container-identifiers"]
or pe["com.apple.developer.ubiquity-kvstore-identifier"]
then
includeProvisioning = true
end

ret = ret .. CoronaPListSupport.valueToPlistEntry(pe)
end

return ret, includeProvisioning
Expand Down

0 comments on commit 237f860

Please sign in to comment.