I recently updated OS X to 10.6.6 and my Xcode version is 3.2.4 with iOS SDK 4.2. Now I can not run KitchenSink or even a newly created mobile project on iPhone Simulator.
Here is the console log on Debug level:
Titanium Developer 1.2.2 would then hang at this point. When manually stopped, console showed additional messages:
[ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 1040, in main cleanup_app_logfiles() File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 1021, in cleanup_app_logfiles '%s.log'%log_id],True) File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/run.py", line 11, in run line = unicode(proc.stdout.readline(), 'utf-8') KeyboardInterrupt
However, the same projects (e.g. KitchenSink or New project) would run fine under Android emulator (e.g. API 2.2).
Any idea what went wrong that caused iPhone Simulator to fail to launch? I'd appreciate any suggestions and recommendations.
Have you tried deleting everything in build/iphone?
I found the root cause of the problem. Somehow my metadata db was corrupted and I deleted indexes on all volumes and rebuilt the index:
$sudo mdutil -i off / $sudo mdutil -avE
Once the metadata database is cleaned. I can run KitchenSink in iPhone simulator as expected. Thanks!