开发者

Titanium won't run iPhone/Android Emulator

I just installed Titanium SDK (1.5.1) and all the Android SDKs. Also, I already have iPhone SDK 4.2 installed.

I downloaded KitchenSink and imported it into Titanium but whenever I try to run it on iPhone Emulator, I get this error:


[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.5.1
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.0
[INFO] Detected compiler plugin: ti.log/0.1
[INFO] Compiler plugin loaded and working for ios
[INFO] Performing clean build
[INFO] Compiling localization files
[INFO] Detected custom font: comic_zine_ot.otf
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 1003, in main
execute_xcode("iphonesimulator%s" % iphone_version,["GCC_PREPROCESSOR_DEFINITIONS=LOG__ID=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s" % (log_id,sdk_version)],False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 925, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/run.py", line 31, in run
sys.exit(rc)
SystemExit: 1

And for Android, it runs the OS but not the KitchenSink app, here's the log:


[INFO] Launching Android emula开发者_运维技巧tor...one moment
[INFO] Building KitchenSink for Android ... one moment
[INFO] plugin=/Library/Application Support/Titanium/plugins/ti.log/0.1/plugin.py
[INFO] Detected compiler plugin: ti.log/0.1
[INFO] Compiler plugin loaded and working for android
[INFO] Titanium SDK version: 1.5.1 (12/16/10 16:25 16bbb92)
[INFO] Waiting for the Android Emulator to become available
[ERROR] Timed out waiting for android.process.acore
[INFO] Copying project resources..
[INFO] Detected tiapp.xml change, forcing full re-build...
[INFO] Compiling Javascript Resources ...
[INFO] Copying platform-specific files ...
[INFO] Compiling localization files
[INFO] Compiling Android Resources... This could take some time

Any ideas on how to get Titanium to work?


I finally managed to fix it. About the adb file, just copy or symlink it from /platform-tools to /tools and Titanium will recognize the SDK.

About the Titanium errors, here's what I did: 1 - First I downloaded the latest Titanium SDK build (1.6.0) from http://builds.appcelerator.com.s3.amazonaws.com/index.html

2 - Installed it by unzipping the file's contents (a folder called 1.6.0) /Library/Application Support/Titanium/mobilesdk/osx

3 - I then uninstalled my Xcode 1.2.5 with SDK 4.2 NOTE: If you have other versions of Xcode installed, REMOVE them and only reinstall the latest version of it, or Titanium will not work. (At least that was the case with me)

4 - Uninstalled Titanium

5 - Reinstalled Xcode with SDK 4.2

6 - Reinstalled Titanium

7 - Open it, create or try to run an old project and it will work for both iPhone and Android.

Hope it helps.

Cheers.


Exactly the same error here - really frustrating. I'm a pretty seasoned coder but Titanium has just sucked the life out of me today. Errors finding adb in the latest Android SDK so I needed to use an older SDK and now this - vanilla install - nothing wacky going on, followed their instructions perfectly but not dice. I know I haven't paid for anything yet but it still pisses me off that developers overpromise the readiness of software that obviously isn't ready for primetime.


Finally, I managed to fix my version of this issue (iPhone sim - I haven't tried Android).

First, upgrade xcode and the IOS SDK to a recent version (4.2 in my case)

Then open the projet in xcode. The file is /build/iphone/yourproj.xcodeproj

Then you will see that there is no Base SDK selected.

Select the SDK by the following menus...

XCode \ Project \ Edit Project Settings \ Build \ Base SDK - iOS Device 4.2 XCode \ Project \ Edit Active Target ‘[project name]’ \ Build \ Base SDK - iOS Simulator 4.2

Build the project in xcode (it'll probably fail)

Save and exit. Go back to Titanium and the project should now build.

Bit of a headache to get started, but there you are.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜