gpt4 book ai didi

android-emulator - Titanium 不会运行 iPhone/Android 模拟器

转载 作者:行者123 更新时间:2023-12-02 00:35:57 26 4
gpt4 key购买 nike

我刚刚安装了 Titanium SDK (1.5.1) 和所有的 Android SDK。另外,我已经安装了 iPhone SDK 4.2。

我下载了 KitchenSink 并将其导入到 Titanium 中,但每当我尝试在 iPhone 模拟器上运行它时,我都会收到此错误:


[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=<strong>LOG__ID</strong>=%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

对于 Android,它运行操作系统而不是 KitchenSink 应用程序,这是日志:


[INFO] Launching Android emulator...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

关于如何让 Titanium 工作的任何想法?

最佳答案

我终于设法修复了它。关于 adb 文件,只需将其从/platform-tools 复制或符号链接(symbolic link)到/tools,Titanium 就会识别 SDK。

关于 Titanium 错误,这是我所做的:1 - 首先,我从 http://builds.appcelerator.com.s3.amazonaws.com/index.html 下载了最新的 Titanium SDK build (1.6.0)

2 - 通过解压缩文件内容(名为 1.6.0 的文件夹)/Library/Application Support/Titanium/mobilesdk/osx 安装它

3 - 然后我用 SDK 4.2 卸载了我的 Xcode 1.2.5注意:如果您安装了其他版本的 Xcode,请删除它们并仅重新安装最新版本,否则 Titanium 将无法运行。 (至少我是这样的)

4 - 未安装的 Titanium

5 - 使用 SDK 4.2 重新安装 Xcode

6 - 重新安装钛合金

7 - 打开它,创建或尝试运行一个旧项目,它适用于 iPhone 和 Android。

希望对您有所帮助。

干杯。

关于android-emulator - Titanium 不会运行 iPhone/Android 模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4588749/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com