I would like to use two different provisioning profiles in my synth plugin project:
- first one for AUv3
- second one for all other targets
I need this because the bundle identifier for AUv3 is different.
When I set PROVISIONING_PROFILE_SPECIFIER = << My First Profile >> in custom xcode flags then it is being used for all targets. I haven’t found a way to set a second profile specifically for AUv3 target.
Is this possible in Projucer?
Thanks,
Antoan
EDIT: Or maybe I don’t need to separately build/export AUv3 if it is already bundled inside the standalone APP?
EDIT: Or maybe I don’t need the Standalone app if it is bundled inside the AUv3 target?
Hi! I have the same problem, I use two different provisioning profiles in my project, like @antoan:
one for AUv3 AppExtension
one for Standalone Plugin
unfortunately I have to configure a CI and from the Projucer I can only add into Custom Xcode Flag one provisioning for the Standalone target adding PROVISIONING_PROFILE_SPECIFIER flag.
Since every time I restart from the Projucer all Xcode configurations are overwritten, I can’t customize each target with a different provisioning profile values.
I solved this adding a script that directly modifies the Xcode project but it would be very useful to have in Projucer the possibility to set two different profiles.
Thank for your help, but the solution doesn’t work for me, I receive this errors on archive:
error project: "myplugin - Standalone Plugin" requires a provisioning profile with the App Groups, iCloud, and Inter-App Audio features. Select a provisioning profile in the Signing & Capabilities editor.
error project: "myplugin - AUv3 AppExtension" requires a provisioning profile with the App Groups, iCloud, and Inter-App Audio features. Select a provisioning profile in the Signing & Capabilities editor.
Seems that something still not configured correctly into project.pbxproj
Then, Xcode shows the correct profiles when I select the Standalone/AUv3 from the list of targets.
If it still doesn’t work after checking all of the above, you could try comparing the Projucer-generated xcode project against one modified by your script. Does your script just add PROVISIONING_PROFILE_SPECIFIER fields, or does it make other changes?
Yes, I’ve set Development Team ID and Code-Signing Identity.
I’ve downloaded the profiles in my build machine.
I follow you suggestions and I’ve added into Custom Xcode Flags, for both Debug and Release configurations this:
But when I try to Archive my product I receive this errors: error project: "myplugin - Standalone Plugin" requires a provisioning profile with the App Groups, iCloud, and Inter-App Audio features. Select a provisioning profile in the Signing & Capabilities editor.
error project: "myplugin - AUv3 AppExtension" requires a provisioning profile with the App Groups, iCloud, and Inter-App Audio features. Select a provisioning profile in the Signing & Capabilities editor.
Can you successfully Archive your test project?
In the meanwhile I continue to use my script that directly modifies project.pbxproj setting with the right profiles.
Both of these exit without errors, as long as I specify a valid provisioning profile. If I deliberately set a missing provisioning profile, then the first step still succeeds, but produces a completely unsigned binary. Then the following step fails, depending on the contents of the exportOptionsPlist. However, I’m still able to export the unsigned binary successfully with an exportOptionsPlist like the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>teamID</key>
<string>10-letter team identifier would go here</string>
<key>provisioningProfiles</key>
<dict>
<key>bundle ID one</key>
<string>profile one</string>
<key>bundle ID two</key>
<string>profile two</string>
</dict>
<key>signingStyle</key>
<string>manual</string>
</dict>
</plist>
If the archive step is giving you problems, perhaps you might have more luck clearing the custom Xcode flags from the Projucer project, and specifying the provisioning profiles in the export plist instead.