Skip to content

Commit 237f860

Browse files
committed
Apple: adding provisioning profile if iCloud was manually added
1 parent 685b98d commit 237f860

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

platform/resources/CoronaPListSupport.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function CoronaPListSupport.generateEntitlements( settings, platform, provisionP
606606
t["com.apple.developer.icloud-container-identifiers"] = cloudKitContainers
607607
t["com.apple.developer.icloud-container-environment"] = ppEnt["com.apple.developer.icloud-container-environment"]
608608
-- Apple doesn't accept to app store with Development container env. even if it is in provisioning profile
609-
if ppEnt["com.apple.developer.aps-environment"]=="production" or ppEnt["aps-environment"]=="production" then
609+
if ppEnt["com.apple.developer.aps-environment"] or ppEnt["aps-environment"]=="production" then
610610
t["com.apple.developer.icloud-container-environment"] = {"Production",}
611611
end
612612
iCloudEnabled = true
@@ -627,7 +627,15 @@ function CoronaPListSupport.generateEntitlements( settings, platform, provisionP
627627
end
628628

629629
if platformSettings and platformSettings.entitlements then
630-
ret = ret .. CoronaPListSupport.valueToPlistEntry(platformSettings.entitlements)
630+
local pe = platformSettings.entitlements
631+
if pe["com.apple.developer.icloud-container-identifiers"]
632+
or pe["com.apple.developer.ubiquity-container-identifiers"]
633+
or pe["com.apple.developer.ubiquity-kvstore-identifier"]
634+
then
635+
includeProvisioning = true
636+
end
637+
638+
ret = ret .. CoronaPListSupport.valueToPlistEntry(pe)
631639
end
632640

633641
return ret, includeProvisioning

0 commit comments

Comments
 (0)