ios - Unable to archive project with xcodebuild command: code sign error, missing provisioning profile? -
i'm using xcode 6.4
, associated command tools. i'm trying archive create ipa
of app command:
xcodebuild -scheme myscheme -archivepath myprojectname archive
but error message:
check dependencies code sign error: no matching provisioning profile found: build settings specify provisioning profile uuid “xxxxxxxxxx”, however, no such provisioning profile found. codesign error: code signing required product type 'application' in sdk 'ios 8.4'quote
but uuid said in such message, not uuid of provisioning profile i've set in target`s build settings > code signing > provisioning profile. in fact, don't know provisioning profile error message talking about... there other place in xcode provisioning profile set , haven't noticed it? how check provisioning corresponds such uuid?
thanks
this depend on how have project's build configuration setup, if inheriting build configurations other .xcconfig files, , automation may have in place dynamically rewrites project's .pbxproj file. said, xcode can confused while attempts straighten .pbxproj , have left lingering.
- quit xcode.
- navigate source files, ,
.xcodeproj
(not.xcworkspace
actual xcode project file itself). - right click on , select 'show package contents'.
- in text-editor of choice (i use bbedit or free version textwrangler), open
project.pbxproj
- search entire
pbxproj
fileprovisioning_profile
i suspect you'll have entry in 1 or more xcbuildconfiguration
blocks resemble this:
/* begin xcbuildconfiguration section */ 7d433cd8275123d91263daa4 /* release */ = { isa = xcbuildconfiguration; buildsettings = { code_sign_entitlements = ""; code_sign_identity = "iphone distribution: name here"; // other settings go in here provisioning_profile = ""; sdkroot = iphoneos; targeted_device_family = "1,2"; }; name = "release"; };
one of these configuration blocks may contain multiple provisioning_profile
settings or might find 1 line matches uuid specified in error. provisioning_profile = "xxxxxxxxxx";
in either case, take care backup .pbxproj file (it in source control, right?) delete offending line(s) revert automatic profile selection, finish searching other instances of same offending line, save of changes, quit text editor , reattempt command-line build.
if have intentionally set specific uuid provisioning_profile
setting in past, sure reverify code sign settings in xcode undo intentional setting removing instances of provisioning_profile
, falling automatic mode.
Comments
Post a Comment