I am having problems redefining the code identifier identifier and the provisioning profile, which are specified in the Xcode build settings, with the one I specify through the command line.
Now I am doing:
xcodebuild -target "#{XTARGET}" -sdk iphoneos
If the Xcode Build Settings is set to "dont code sign", this works fine. But if it is set to an identity different from the one that I indicate as DEVELOPER, it fails. Please note: I do not want to open Xcode to create an assembly using this script. But for now, I have to make sure that the build settings say "do not enter code."
It seems to me that I need to find a way to also specify the provisioning profile through xcodebuild, but when I write:
xcodebuild -target "#{XTARGET}" -sdk iphoneos#{SDK_VERSION} -configuration #{config} CODE_SIGN_IDENTITY="#{DEVELOPER}" PROVISIONING_PROFILE="#{PROFILE}"
The team does not work and says that the provisioning profile cannot be found. Although it is in the right place. I tried to specify the full path, relative path, just the file name. It works when I specify this profile in the xcrun command. But this does not go with xcodebuild.
Any ideas?
source
share