Feb 01 2010

Appcelerator Titanium Error “couldn’t find module library…”

So a buddy of mine who I am collaborating with on iPhone projects using Titanium 0.8.2 kept receiving this error: “couldn’t find module library Titanium.API” when launching his application.  As a result any time it detected code that referenced Titanium.API the simulator would crash.

It turns out that the builder.py file in the /Library/Application Support/Titanium/mobilesdk/osx/0.8.1/iPhone directory was scanning for the file libAPI-3.0.a.  The trick is to modify the python code so that it doesn’t upper-case the module name and instead, correctly looks for libApi-3.0.a.

Here’s what to do:

1) Open a new terminal window and cd to /Library/Application Support/Titanium/mobilesdk/osx/0.8.1/iPhone directory

2) Make a copy of the builder.py file (name it builder.py.bak or something else) just in case

3) type “vi builder.py”

4) Find the line “module_normalized_name = module_name[0:1].capitalize() + module_name[1:]” and just above it enter this line “module_name = module_name.lower();”

5) Save the file and re-launch

We scoured the web to find a solution, but didn’t see anything so before we forget, we thought we’d share this.

Post to Twitter Tweet This Post

Sponsored Links

4 Comments

  • By Fred, February 1, 2010 @ 1:02 PM

    Thank you so much Mr. Nice Geek. This was a great post.

  • By loans, March 9, 2010 @ 5:31 PM

    I want to thank the blogger very much not only for this post but also for his all previous efforts. I found blog.mrnicegeek.com to be extremely interesting. I will be coming back to blog.mrnicegeek.com for more information.

  • By Mr. Nice Geek, March 9, 2010 @ 5:48 PM

    Thanks all. I will try to dedicate more time to technology posts, but lately it has been mostly on the investing side as that has drawn a larger audience and taken most of my spare time.

Other Links to this Post

  1. Appcelerator Titanium « AdSpeek — February 2, 2010 @ 5:38 AM

RSS feed for comments on this post. TrackBack URI

Leave a comment

WordPress Themes