Looking at discussion here, I am trying to manually sign my iOS in command line for CI.
I did a sed to replace automatic signing with manual signing as was required looking at discussion here.
sed -i '' 's/ProvisioningStyle = Automatic;/ProvisioningStyle = Manual;/' MyApp/MyApp.xcodeproj/project.pbxproj
The ran the following command to manually sign using xcodebuild
xcodebuild -project MyApp/MyApp.xcodeproj -scheme "MyApp" -configuration Release DEVELOPMENT_TEAM="97ARBCD76FG" PROVISIONING_PROFILE="xxxx-xxxx-xxxx"
I get the following error:
Provisioning profile "iOS Team Provisioning Profile: *" doesn't include signing certificate "iPhone Distribution: My Company (97ARBCD76FG)". Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile. Code signing is required for product type 'Application' in SDK 'iOS 10.3'
What am I missing for the manual signing to work with xcodebuild?