Error “You may need to install the Command Line To

2019-08-16 17:46发布

问题:

Does anyone know how to package Titanium module for Android? Every time I try to package the Titanium module, it give me an error. Here's my log output:

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.

Here's my computer spec:

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

and this is my 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

Does anyone know how to solve it? Many thanks.

回答1:

Have you tried doing what it says, installing the Command Line Tools package through Xcode?

Also, that version of Xcode (3.0) is not supported by Titanium Mobile 2.1.4GA. You need to upgrade to at least version 4.2, as detailed in the compatibility matrix: http://docs.appcelerator.com/titanium/2.0/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-Xcode