I’m using Xcode server (Xcode 9 beta 6) and defined a bot to archive and export an ad-hoc build using my ad-hoc provisioning profile. I have turned off automatic signing in the project and have defined arguments for xcodebuild in the bot Arguments window including DEVELOPMENT_TEAM, PROVISIONING_PROFILE, AD_HOC_CODE_SIGNING_ALLOWED, BUNDLE_ID, CODE_SIGN_IDENTITY and signingStyle.
When I run the integration the build succeeds and a valid archive is created but exporting fails with error saying the app ‘requires a provisioning profile’. Recovery suggestion is to ‘add a profile to the “provisioningProfiles” dictionary in your Export Options list’.
I added the “provisioningProfiles” dictionary in my exportOptions.plist but I don’t know how to get the bot to use that list? When I check the log at the end of the integration I see that the bot has created its own ExportOptions.plist that it is using. I see that the list is using method “same-as-archive” so I don’t know why it doesn’t know which profile to use.
I tried to add a pre-build script that copies my plist to the bot working space but the bot ignores it and overwrites the plist with its own file during integration.
I also tried to define a path to my exportOptions.plist on the bot Arguments list but that is ignored and the bot just uses its own plist for exporting.
What would be the way to tell the bot to use a certain exportOptions.plist? (And why would “same-as-archive” method not work?)