错误“你可能需要通过XCode安装命令行工具包”当包钛模块?

时间:2012-12-11 09:53:03

标签: javascript titanium titanium-mobile titanium-modules

有谁知道如何为Android打包Titanium模块?每次我尝试打包Titanium模块时,都会给我一个错误。这是我的日志输出:

Executing build.xml...
/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA/module/android/build.xml:362: The following error occurred while executing this line:
/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA/module/android/build.xml:317: exec returned: 2You may need to install the Command Line Tools package through XCode, in case you haven't done so yet.

这是我的电脑规格:

  • Mac OS X Snow Leopard
  • 钛2.1.4GA
  • XCode 3.0

这是我的build.properties:

titanium.platform=D:\\Users\\Administrator\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\2.1.4.GA\\android
android.platform=C:\\DeveloperFolder\\adt-bundle-windows-x86_64\\adt-bundle-windows\\sdk\\platforms\\android-8
google.apis=C:\\DeveloperFolder\\adt-bundle-windows-x86_64\\adt-bundle-windows\\sdk\\add-ons\\addon-google_apis-google-8

有谁知道如何解决它?非常感谢。

1 个答案:

答案 0 :(得分:0)

您是否尝试过通过Xcode安装命令行工具包?

此外,Titanium Mobile 2.1.4GA不支持该版本的Xcode(3.0)。您需要升级到至少4.2版,详见兼容性矩阵:http://docs.appcelerator.com/titanium/2.0/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-Xcode