Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Xcode project.pbxproj + Subversion = code signing issue?

Try to commit my first iPhone application to Subversion found that there's "code signing identity" section in my xcode project.pbxproj file.

CODE_SIGN_IDENTITY = "iPhone Developer: my username here...;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: above...";

The issue is, in our team we use different provisioning which bound to our device. So when other want to run the code on device, they have to change this line. We can share one provisioning to across this, but that way have several downside. Is there any other way to solve it? i.e. include code signing section to another file which not commit to SVN?

like image 820
Favo Yang Avatar asked Dec 01 '08 16:12

Favo Yang


2 Answers

As long as you have just one signing identity, you can just use "iPhone Developer" as your codesigning identity. Codesign will search for an identity containing "iPhone Developer" and use that.

like image 175
Mike Akers Avatar answered Nov 06 '22 03:11

Mike Akers


You can use $(USER) in your build setting definition to include your short user name.

For example:

CODE_SIGN_IDENTITY = "iPhone Developer: $(USER)";

That will use the contents of the USER environment variable in the definition of the CODE_SIGN_IDENTITY build setting.

like image 45
Chris Hanson Avatar answered Nov 06 '22 03:11

Chris Hanson