Open kellybyrd opened 1 year ago
Update: I ended up using MobileDevOps/secret-to-file-action@v1.0.0
to turn the base64 .mobileprovision
secrets into files, then I was able to use
mobileprovision-path : |
./tmp/App.mobileprovision
./tmp/Ext1.mobileprovision
./tmp/Ext2.mobileprovision
./tmp/Ext3.mobileprovision
and it appears to be working.
So, either I don't understand how the mobileprovision-base64
option is supposed to work with multiple secrets, or it doesn't actually work correctly.
hi @kellybyrd, I had the same problem with mobileprovision-base64
. Here's what I did to resolve it:
mobileprovision-base64
and export-options
.
export-options: path_to_options_plist
mobileprovision-base64: |
${{ secrets.APP_PROVISIONING }}
${{ secrets.EXTENSION_PROVISIONING }}
options.plist
file like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>adhoc</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
<key>provisioningProfiles</key>
<dict>
<key>APP_ID</key>
<string>PROVISIONING_PROFILE_NAME</string>
<key>EXTENSION_ID</key>
<string>EXTENSION_PROVISIONING_PROFILE_NAME</string>
</dict>
</dict>
</plist>
You can find the name of the provisioning profile on Apple Developer portal
I have an iOS app with several embedded extensions. In GitHub secrets, I have
MY_PROVISION_PROFILE_1_BASE64
,MY_PROVISION_PROFILE_2_BASE64
,MY_PROVISION_PROFILE_3_BASE64
,MY_PROVISION_PROFILE_4_BASE64
When I use
mobileprovision-base64: ${{ secrets.MY_PROVISION_PROFILE_1_BASE64 }}
The section of the Action is fine:But of course the build fails later because I don't have provisioning profiles for all the bundle ids. The above is true if I use any profile 1-4, as long as a I use only one at a time.
When I try more than one
the Action fails early with this:
I have tried each of the individual profiles (they all pass this
install_provisioning_profile
step). I have tried many combinations of the various profiles together and I have not gotten any of them to work.Do I understand this wrong? What can I do?