【问题标题】:Error "You may need to install the Command Line Tools package through XCode" when package titanium modul?打包钛模块时出现错误“您可能需要通过 XCode 安装命令行工具包”?
【发布时间】:2012-12-11 09:53:03
【问题描述】:

有人知道如何为 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 雪豹
  • 钛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

有人知道怎么解决吗?非常感谢。

【问题讨论】:

  • 将您的 .classpath 和 build.properties 添加到问题中,并更新它,让人们知道您现在正尝试在 Windows 上执行此操作。
  • @Dawson Toth:我可以找到 build.properties,但我找不到 .classpath 的位置。你知道我在哪里可以找到 .classpath 吗?谢谢..

标签: javascript titanium titanium-mobile titanium-modules


【解决方案1】:

您是否尝试过按照它所说的那样通过 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

【讨论】:

  • 感谢您的回答,dawson.. 我的 mac OS 不支持 XCode 4.2,我改为 windows.. 您有任何信息或参考如何创建钛模块以及如何从零开始使用它?这里真的很困惑..非常感谢..
  • 谢谢,在阅读后我发现了一些错误..当我尝试编译我的钛模块时,它总是给我错误:“......:42在引导程序中找不到符号”。 . 你知道怎么解决吗?
  • 这通常意味着 .classpath 或 build.properties 文件没有指向现有的 Ti SDK 或 Android SDK。
  • 我明白了.. 我会检查它道森.. 感谢您的评论 :)
猜你喜欢
  • 2019-03-14
  • 2013-10-04
  • 2023-03-28
  • 2020-03-23
  • 1970-01-01
  • 2019-03-02
  • 2022-10-14
  • 2014-01-16
  • 1970-01-01
相关资源
最近更新 更多