The Ultimate Business Machine - Archives
List of Categories : Database * Technology * Commentary * Singapore * Travel *
Fri 16 Oct 2009
Maven Snow Update
Category : Technology/MavenSnowUpdate.txt
I released Maven Snow too quickly yesterday without testing on another machine that didn't have my development libraries (for MySQL and PostgreSQL) installed. They crashed on launch.
Investigating the crash report -
Dyld Error Message: Library not loaded:
Reason: image not found
The "lib/mysql/libmysqlclient.16.dylib" was detritus left behind from my (ultimately successful) attempt to set up on single code base to build database connectors for three platforms - Mac OS X, iPhone, and the iPhone simulator.
I didn't need libmysqlclient.16.dylib and a few other dylibs from MySQL and PostgreSQL in order to make Maven (or Luca) run. But they were there when Maven was being linked with its libraries and, since I didn't need them, I didn't package them with the Maven app, of course they couldn't be found, at launch time, at some other person's Mac. Hence the crash.
Removing all these garbage from my build environment cleared the crash. Lesson : do not leave your workspace in a mess. These things will trip you up and, at the least, give you untold embarassment.
Speaking of embarassment, Nick Lo asks :
Also, this feels like a stupid question so I'm hesitant to bring it up, but I was reading your "Maven for Snow Leopard" post and noted you say...
...and was wondering why you are comparing your new version of Maven with what is now an abandoned project rather than to its successor Sequel Pro?
The answer is, "I'm out of touch". I don't know about Cocoa MySQL being abandoned but it's what I use, still, on my desktop (e.g., to check up serial numbers for people who've lost theirs, or to update my apps' version numbers) and my aim was to make Maven good enough that I could stop using it.
So maybe I'm aiming too low. But the truth is, as a GUI for SQL databases, Maven has still a long way to go. But as a Cocoa framework for database access, so that I can have one unified way of accessing three different bases from both the Mac and the iPhone (and one unified way of making SQL calls), Maven is coming along fine and I can't wait to get some current stuff out of the way so that I can move on to iPhone development.