Delivery failed because of iCloud

Hello!

Delivery fails on transporter and I get this message.

Asset validation failed (90046)
Invalid Code Signing Entitlements. Your application bundle’s signature contains code signing entitlements that are not supported on iOS. Specifically, value ‘Development’ for key ‘com.apple.developer.icloud-container-environment’ in ‘Payload/myapp.app/myapp’ is not supported. (ID: 083473a7-60a6-4936-bcd6-8e329cd359e3)

Happens when adding iCloud = true, in build.settings (no other change).

The app at its first releases had no iCloud so I update the identifier, enabled iCloud containers and created new profiles.

Am I missing something?

Edit:
Solar2D 2023.3700
Xcode 15.0.1

security cms -D -i /Users/mycomputer/Downloads/distribution.mobileprovision

gave me this:

	<key>com.apple.developer.icloud-container-environment</key>
	<array>
			<string>Production</string>
			<string>Development</string>
	</array>

Could be something wrong with the provisioning profile?
Development string maybe shouldn’t be there?

Or iCloud = true should remove the development string but it doesn’t for some reason?

@Scott_Harrison @vlads some help here please?

I have tried everything without luck.

I uploaded a new game and was successful with iCloud enabled from start.

For the game that fails, when I was preparing it for release I didn’t put tick to iCloud while making the Identifier (in Certificates, Identifiers & Profiles in Apple Developer).

I added in future update and that’s is causing the problem.

Please anyone knows how I can fix it??

I, like many others, detest setting up or editing certificates, entitlements, etc.

I don’t really have a certain answer to this. If I had to guess, I would just wager when you changed entitlements/permissions and added iCloud to your existing game, you forgot to also update or download the updated profile or certificate, or Solar2D/XCode didn’t get the new version, etc.

I just find the Apple environment to be a pain to deal with. :sweat_smile:

1 Like

What bothers me is that inside the distribution profile is that part of code

<array>
    <string>Production</string>
    <string>Development</string>
</array>

I don’t get that on my other games.
Could the profiles be corrupted somehow?

Is there a way to edit that?

Also it happens only when I chose and add iCloud container.

Is there a way to chose between production and development iCloud containers?

All this was for nothing.
I don’t need containers because my code is kvs and works like a charm.

:smiley:

There are different types of distribution profiles. If I remember correctly, some of them could be used for both production and development. That being said, I really don’t familiarise myself with those things. I usually just go in there, set something up and only go back in when something’s not working anymore. :sweat_smile:

1 Like