Nov 04
Mongocertificates, iPhone, Mac, Software Development certificates, chrome, errors, iPhone, safari
Part of the process of setting up iOS apps for push notifications involves signing and submitting certificate signing requests in Apple’s iOS Provisioning Portal. Typically, if you can read and follow directions, this is not too big of a deal. However, if you do end up getting the dreaded “The Certificate file is invalid. Please check the file and try again.” error, then the cause may just have nothing to do with you, and everything to do with your browser.
I have run into this a couple of times now, and both times it was because I was using Google’s Chrome browser. For whatever reason, Chrome can’t seem to play nicely with the iOS provisioning portal and screws up the upload. If you switch over to Safari, you should have no problems submitting the certificate signing request. If you are still getting an error, then the problem is some where else.
If you get this screen and are using Chrome:

Switch to Safari and you should get this:

Moral of the story:

Jul 27
MongoMac, Software Development debugging, interface builder, iPhone, xcode
If you have ever come across the following error, it can be pretty frustrating if you don’t know where to look:
*** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<SomeViewController 0x13e190> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key someObjectView.’
Nearly every time I’ve seen this so far, it has been because I had removed a view (UIButton, UILabel, etc) and had forgotten to remove the connection in Interface Builder. So, if you are seeing this error and your code looks fine, remember to check IB!
Jul 16
MongoMac, Software Development Mac, OSX, SVN
I recently needed to remove the SVN references from a project where the repository was no longer available. The trouble is that the .svn directories are hidden. Even if they were not, you would still have to find them all and delete them, which sucks. Below is a quick command you can run in terminal to recursively remove the .svn directories. You first need to navigate to the folder you want to remove them from, otherwise badness will occur!
It is a good idea to run this first, it will show you what will be deleted:
find . -type d -name .svn -depth
Then run this to delete the .svn directories
find . -type d -name .svn -depth -exec rm -rf {} “;”
Be sure to have the semi-colon at the end in quotes, otherwise terminal may “eat” it and the script won’t run. At least that was the case on my system :p