2

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?

TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
  • 1
    Possible duplicate of [Signing app with xcodebuild command line with PROVISIONING\_PROFILE fails](https://stackoverflow.com/questions/45051712/signing-app-with-xcodebuild-command-line-with-provisioning-profile-fails) – Sven Driemecker Jul 13 '17 at 08:16

0 Answers0