Xcode, incrementing build numbers and version numbers for releases

How to add a build number increment phase to you ios project in xcode

By: Procsilas Moscas

I like nice neat build numbers. I don’t like manually maintaining text fields.

To that end, I modified a nice lead on a build number increment script to suit my needs. Maybe it will help you, too.
Continue reading “Xcode, incrementing build numbers and version numbers for releases”

How to remove beta Xcode now that XCode has been released

How to uninstall beta versions of Xcode from your Mac.

Xcode

Now that iTunes 10.5, iOS5 and the new Xcode have been released, it is worth mentioning that to uninstall any beta installation you had, you should use the uninstaller.


sudo <Xcode>/Library/uninstall-devtools --mode=all

Where <Xcode> is the directory where you installed the beta Xcode.

I usually install the different versions into different directories (/Developer, /Developer5b3 etc).

Video explaining steps to fix Xcode codesign failed with exit code 1; expired certificates causing ambiguous matches

Xcode codesign failed with exit code 1; expired certificates

I’ve been getting a lot of comments about how to fix the Xcode codesign failed with exit code 1; expired certificates causing ambiguous matches. This problem is such a time sink that I suspect it really helps to have someone explain the simple solution for resolving it.

To make it easier for those who’d rather hear how to solve it, I made a short video explaining the solution.

I appreciate the feedback and I’m glad to help.

And thanks to everyone who’s helped me.

Xcode codesign failed with exit code 1; expired certificates causing ambiguous matches

If you work with Xcode code signing long enough you’ll run into an error like this:

/usr/bin/codesign failed with exit code 1

If you view the build results (Build->Build Results), and expand the error message (there is a little paragraph button on the right-hand side of the line) you may see something like this:

iPhone Developer: Firstname Lastname (hashcode): ambiguous (matches "iPhone Developer: Firstname Lastname (hashcode)" in /Library/Keychains/System.keychain and "iPhone Developer: Firstname Lastname (hashcode)" in /Users/username/Library/Keychains/login.keychain)
Command /usr/bin/codesign failed with exit code 1

You have two certificates, with the same unique identifiers. One is in your login keychain and the other is in your system keychain. The real problem is, you probably have an expired certificate conflicting with your active certificate.
Continue reading “Xcode codesign failed with exit code 1; expired certificates causing ambiguous matches”

Show the UINavigationController Root View Controller in UITabBarController

A method for showing the UINavigationController Root View Controller in UITabBarController using introspection to determine class membership.

When programming on iPhone or iPad, it’s common to have a UITabBarController mixed with UINavigationController.

You will probably find yourself needing to show the Root View Controller of a Navigation Controller when you switch Tabs in the Tab Controller. Continue reading “Show the UINavigationController Root View Controller in UITabBarController”