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.

Setting up Virtual Hosts with XAMPP on a Mac

Sometimes, putting a website into a subdirectory just doesn’t cut it. You need to have the website act like it’s on it’s own first party domain. But how do you do this with XAMPP? XAMPP uses Apache web server and to do this with Apache, you would create virtual hosts.

To create some XAMPP virtual hosts on our Mac, we need to

* create a virtual hosts entry for each virtual host
* include the virtual hosts file in the httpd.conf
* add an entry in your hosts file for each virtual host

By: Procsilas Moscas

Continue reading “Setting up Virtual Hosts with XAMPP on a Mac”

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”

Getting a larger virtual monitor with a Mac hosted VirtualBox and Ubuntu guest

Ubuntu with 1024x768 screen in VirtualBox
Now that's a respectable 1024x764 Ubuntu view in VirtualBox on my MacBook.

I use VirtualBox on my Mac for “other” operating systems.

I was recently creating a new Ubuntu guest OS for doing some work with PostgreSQL on Linux. I like a GUI, so I was using pgAdmin. Normally I don’t care if the window is 800×600, but when I started using pgAdmin, I couldn’t see all of the window.

Continue reading “Getting a larger virtual monitor with a Mac hosted VirtualBox and Ubuntu guest”

GrandPerspective: a visual file space viewer for Mac

I take a lot of photos, take some occasional movies, have a bunch of music, download a lot of apps, buy a lot of PDF books and generally just eat up my hard drive space constantly. Every once in a while I get down to, like, 30M free and suddenly remember to move all my photos and videos off to my external storage. Sometimes, I can’t figure out where all the space is being used though.

Yesterday I wondered (twittered) whether there was a visual disk viewer that would show me where all my space was being held hostage. It turns out there is a great tool for Mac called GrandPerspective.

GrandPerspective graphical view of my disk usage
That giant yellow/green block in the middle? That's my Windows 7 virtual machine. Keep. (grumble, grumble)

Continue reading “GrandPerspective: a visual file space viewer for Mac”

Great week; two iPhone apps in the app store

It has been a great week. Two iPhone apps, which I’ve been working on, went into the app store: AccelGolf: Golf GPS Rangefinder and CU24 SURF ATM finder.

It has been a great week. Two iPhone apps, which I’ve been working on, went into the app store: AccelGolf: Golf GPS Rangefinder and CU24 SURF ATM finder.

I’ve only been working on AccelGolf: Golf GPS Rangefinder for a short time, but I’m having an ever-increasing role in it’s development. It’s an awesome tool for Golfers to track and improve their game. The introductory price of $4.99 is unbeatable, but won’t be available at that price for long! Find out more at AccelGolf. Or check it out in the App Store.

The SURF ATM Finder is an app I developed for a client as my own company, Whirlidoo (LLC is in the works). If you are a member of a surcharge free SURF Alliance Credit Union in Maine, you’ll appreciate this app. SURF ATM Finder is free in the App Store.

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”

Now listening to “Free: The Future of a Radical Price”

Shane Culp mentioned Chris Anderson’s book “Free: The Future of a Radical Price” during a Boston Game Loop discussion on Indie Business Strategies. Chris Anderson’s book promises to discuss things like Freemium strategies, piracy and the like. This is all very interesting to the indie game developer.

Free: The Future of a Radical Price
Free: The Future of a Radical Price
I found Free: The Future of a Radical Price online.

But, it is also available on Audible. There are two versions: a free, unabridged (7 hr +/-) version and an abridged, straight-to-the-point version (3:20 hrs +/-).

It’s also available online in Scribd format.

How do you get MySQL Administrator GUI to work with XAMPP on Mac OS X?

I had trouble getting MySQL GUI Adminstration tools to connect to my XAMPP installed MySQL database server on Mac OS X. This solution may help people who have the same problem and don’t know how to figure it out.

I’m working on a Mac with OS X 10.5.7 and a fresh XAMPP 1.0.1 install. XAMPP gives your OS X a complete Apache, MySQL and Perl/PHP installation to work with. With it, you can develop on your Mac with a complete web server. (Sure, Mac comes with most of this stuff built in, but XAMPP is really nice and allows you to have your Mac web services turned off for security.)

XAMPP also comes with phpMyAdmin for managing your MySQL server through a web page. I find phpMyAdmin to be awesome for most of what I do with a database. Sometimes I need to revert to command-line for large datafiles and stuff, but I’d say 99.9% of the time I can use phpMyAdmin for what I’m doing. I ran into a problem with phpMyAdmin trying to view a database table that was imported from an Excel export. For some reason, the phpMyAdmin page is just plain white – making me think there was some web/parsing/display problem involved. I needed a different way to view the DB. For this kind of thing I hate the command line. (The line wrapping…blech!)

Continue reading “How do you get MySQL Administrator GUI to work with XAMPP on Mac OS X?”