Often in settings that use version control, project.pbxproj
can be combined so that two lines of CODE_SIGN_IDENTITY
can be inserted. In some situations, this causes problems with Xcode (for example, building or archiving on the command line).
The tooltip is lines similar to this in the project.pbxproj
file (right-click on the project and select "Show Package Contents ...")
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Distribution";
Removing one of these lines will allow you to choose the correct value in the build settings, and the project should build correctly again.
I created a simple script to help diagnose this problem, which can be found here: https://github.com/rjstelling/Xcode-Project-Validate
rjstelling Dec 19 '12 at 22:30 2012-12-19 22:30
source share