All Xcode settings are actually stored in <project-name>.xcodeproj/project.pbxproj
. He looks like
buildSettings = { CODE_SIGN_ENTITLEMENTS = ""; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; ... PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; SKIP_INSTALL = YES; };
The code signing identifier is controlled by the CODE_SIGN_IDENTITY
key, and the Provisioning Profile is controlled by the PROVISIONING_PROFILE
key.
project.pbxproj
- a text file that can be edited using traditional CLI word processing tools, for example sed with
sed -ie 's/CODE_SIGN_IDENTITY = "iPhone Developer"/CODE_SIGN_IDENTITY = ""/g' <project-name>.xcodeproj/project.pbxproj sed -ie 's/PROVISIONING_PROFILE = ""/PROVISIONING_PROFILE = "1c28c979-6bef-4917-aa34-92aecd91315c";/g' <project-name>.xcodeproj/project.pbxproj
You can get a list of available Signing Identities using
security find-identity -v -p codesigning
For PROVISIONING_PROFILE
, this is the UUID of the initialization file, it can be obtained using
grep -aA1 UUID /path/to/mobileprovision
source share