Friday, 15 August 2014

xcode - iOS: specify code signing identity with .xcconfig file -



xcode - iOS: specify code signing identity with .xcconfig file -

i'm working on ios application within team of several developers. have our developer certificates belong same development provisioning profile. when build app we're working on in order test on device, need specify explicitly code signing identity use. otherwise, if select automatic profile selector, code signing mismatch error when uploading app services hockeyapp. indeed, when select automatic profile selector, seems select ios team provisioning profile instead of development provisioning profile specific app i'm building.

when developer of application, fixed issue hardcoding right code signing entity utilize in build settings. problem i'm not developer on project anymore. problem hardcoding code signing identity in project settings have remove every time commit alter project's settings, or if don't teammates errors when sign app saying code signing identity can't found on computer.

so i'm trying setup .xcconfig file each of team members specify code signing identity use. file not versioned set code signing identity explicitly without causing issue other developers within same team.

i managed include .xcconfig file in project , processed during build phase. however, haven't been able write .xcconfig file solves code signing entity issue. tried set next line in .xcconfig file:

code_sign_identity = iphone developer: firstname name (xxxxxxxxxx)

where firstname name (xxxxxxxxxx) result of copy/pasting code signing identity want utilize build settings .xcconfig file. later realized code signing identities development profiles (one each application or bundle identifier) give same result when copy/paste them build settings .xcconfig file.

i looking way differentiate them, didn't manage find 1 works. have thought of how solve problem ?

i tried using [sdk=iphoneos*] modifier, no success.

i avoid using different build configurations because sense have merge changes made main configuration new build configuration made purpose of using right code signing identity. however, i'm not familiar how build configurations work within xcode, sense free educate me on if think solution.

thank you!

instead of selecting code_sign_identity, doesn't matter, instead specify provisioning_profile , leave xcode sign whatever identity matches. our internal build system

specify profile with:

provisioning_profile=cb65516b-ee34-4334-95d6-6fba5f2df574

where long hex number uuid of profile. if within provisioning profile you'll find of ascii, though it's binary file, , has section this

uuid 395525c8-8407-4d30-abbd-b65907223eec

ios xcode

No comments:

Post a Comment