% pwd
/Users/app/Library/MobileDevice/Provisioning Profiles
% for mobileprovision in *.mobileprovision; do security cms -D -i $mobileprovision | grep -A1 application-identifier | grep -v application-identifier; done
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.ContentTodayExtension</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.CredentialProviderExtension</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.IntentsExtension</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.SearchTodayExtension</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.ShareExtension</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.TodayExtension</string>
<string>8RA8L783G3.myprefix.chromium.ios-web-view-shell</string>
<string>8RA8L783G3.myprefix.chromium.chrome.ios.dev.WidgetKitExtension</string>For each of these provisioning profiles I granted the App Groups capability, and gave them access to the chrome and common groups as mentioned in the documentation. I also granted the AutoFill Credential Provider capability. No code-signing errors appeared during the build process.
When examining the chromium app I can see the following:
- Chromium.app/embedded.mobileprovision -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev
- Chromium.app/Plugins/content_widget_extension.appex -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev.ContentTodayExtension
- Chromium.app/Plugins/credential_provider_extension.appex -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev.CredentialProviderExtension
- Chromium.app/Plugins/search_widget_extension.appex -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev.TodayExtension
- Chromium.app/Plugins/share_extension.appex -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev.ShareExtension
- Chromium.app/Plugins/widget_kit_extension.appex -> 8RA8L783G3.myprefix.chromium.chrome.ios.dev.WidgetKitExtensionNote:
- Not all the provisioning profiles are being used in the build - unless they are somewhere I can't find them in the app. Is this ok?
- The search_widget_extension is using the TodayExtension bundle id - is that correct?
-------
With regards to entitlements, I have compared the entitlements required by the app according to codesign, and those included in the embedded.mobileprovision file:
# Entitlements required by app
codesign -d --entitlements :- Chromium.app | xmllint --format -
# Entitlements in provisioning profile
security cms -D -i Chromium.app/embedded.mobileprovisionThey seem to match, unless I'm missing something.
-------
This error is pretty vague and when looking online it covers a bunch of other possibilities also:
1. Certificate expired. - have checked and it's not.
2. Device not registered. - have checked and it is registered and present in the .mobileprovision file.
3. Various xcode related issues. - have not used xcode for this build.
4. Build system should be the “legacy build system”. - not sure about this one
Please let me know if there is anything I've missed here or if there's any way to debug further.
Many thanks,
Isaac