iOS Question Error building release app

mcorbeel

Active Member
Licensed User
Longtime User
I have an issue with building my release app. The provision profile includes iCloud support. This is the error that is shown.
error: Provisioning profile "Dylius20210204store" doesn't include the com.apple.developer.icloud-container-development-container-identifiers,
com.apple.developer.icloud-container-identifiers,
and com.apple.developer.icloud-services entitlements. (in target 'B4iProject' from project 'B4iProject')
I included these lines in my project:
B4X:
#MinVersion: 9
#Entitlement: <key>com.apple.developer.icloud-services</key><string>*</string><key>com.apple.developer.icloud-container-identifiers</key><array></array>
#Entitlement: <key>com.apple.developer.icloud-container-development-container-identifiers</key><array></array>
 

mcorbeel

Active Member
Licensed User
Longtime User
In the App ID modification I have the choice of xcode 5 or 6... tried both. What I did not do is configure the iCloud containers. Is this required?
 
Upvote 0

mcorbeel

Active Member
Licensed User
Longtime User
The steps I did:
- on Apple Dev modified my app id, checked the iCloud option and saved it
- removed all app store provision profiles i had
- created new provision profile for App Store distribution and linked it to my app id
- downloaded this provision profile and referenced it in my project
- to be sure, also downloaded distribution certificate again, and referenced it in my project
- in B4i, build release app with hosted builder (tried both primary and secondary server)
and have this result:
B4i Version: 7.00
Parsing code. (0.19s)
Building folders structure. (0.05s)
Running custom action. (0.02s)
Compiling code. (0.70s)
Compiling layouts code. (0.02s)
Building Xcode project. (0.24s)
Preparing project for builder. (0.67s)
Project size: 3.00 MB
Sending data to remote compiler. Error
Error: security: SecKeychainDelete: The specified keychain could not be found.

Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=Dylius CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Echo bvba (CX45GJ6H3E)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=80bd2503-14d7-45c0-84ea-52e03c40a2b6 -arch armv7 -arch arm64

Build settings from command line:
ARCHS = armv7 arm64
CODE_SIGN_IDENTITY = iPhone Distribution: Echo bvba (CX45GJ6H3E)
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = Dylius
PROVISIONING_PROFILE = 80bd2503-14d7-45c0-84ea-52e03c40a2b6

note: Using new build system
note: Using codesigning identity override: iPhone Distribution: Echo bvba (CX45GJ6H3E)
note: Planning build
note: Constructing build description
error: Provisioning profile "store" doesn't include the com.apple.developer.icloud-container-development-container-identifiers,
com.apple.developer.icloud-container-identifiers,
and com.apple.developer.icloud-services entitlements. (in target 'B4iProject' from project 'B4iProject')


Error: ** BUILD FAILED **
 
Upvote 0

mcorbeel

Active Member
Licensed User
Longtime User
A bit of good news! I managed to build the release of my app by modifying #MinVersion: 9 to #MinVersion: 11
The build is now okay, unfortunately the upload to iTunes Connect gives:
1 package(s) were not uploaded because they had problems:
/var/folders/p6/mldl3_gx44qfvmp9tc1b4g8c0000gp/T/23C9FF14-6F46-49BC-8DB9-BE6585E3FB2B/926222305.itmsp - Error Messages:
ERROR ITMS-90045: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, key 'com.apple.developer.icloud-container-development-container-identifiers' in 'Payload/Dylius.app/Dylius' is not supported."
ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value '*' for key 'com.apple.developer.icloud-services' in 'Payload/Dylius.app/Dylius' is not supported."
2021-02-05 14:35:34.121 altool[57088:109546230] *** Error: Error uploading 'Dylius.ipa'.
2021-02-05 14:35:34.121 altool[57088:109546230] *** Error: code -18000 (ERROR ITMS-90045: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, key 'com.apple.developer.icloud-container-development-container-identifiers' in 'Payload/Dylius.app/Dylius' is not supported.")
2021-02-05 14:35:34.121 altool[57088:109546230] *** Error: code -18000 (ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value '*' for key 'com.apple.developer.icloud-services' in 'Payload/Dylius.app/Dylius' is not supported.")
 
Upvote 0

mcorbeel

Active Member
Licensed User
Longtime User
Finally succeeded in uploading my release to App store.
I removed <string>*</string> from the entitlement. This is my final code:
B4X:
#MinVersion: 11
#Entitlement: <key>com.apple.developer.icloud-services</key><key>com.apple.developer.icloud-container-identifiers</key><array></array>
#Entitlement: <key>com.apple.developer.icloud-container-development-container-identifiers</key><array></array>
 
Upvote 0
Top