我有一个我在Titanium Studio, build: 3.4.0.201409261227
和Titanium SDK 3.1.2.GA
该应用程序开发得很好,已经上市近一年半了。最近,客户要求我更新它。
我尝试使用高于SDK
的{{1}}来构建它,但我遇到了错误,因为较高的3.3.0.GA
使用主题加上其中一个模块不支持更高的SDK
所以我做的是安装上面SDKs
的旧版本并使用Titanium studio
安装,我安装CLI SDK
安装没有问题
但是,当我尝试构建应用程序并在模拟器或设备上运行时,Titanium会给我以下错误;
Titanium SDK 3.1.2.GA.
它与我的[ERROR] Application Installer abnormal process termination. Process exit value was 1 /usr/local/lib/node_modules/titanium/hooks/tisdk3fixes.js:165
var pd = data.result[1].options['project-dir'],
^
TypeError: Cannot read property 'options' of undefined
at cli.on.post (/usr/local/lib/node_modules/titanium/hooks/tisdk3fixes.js:165:27)
at /usr/local/lib/node_modules/titanium/lib/hook.js:242:13
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:689:13
at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:265:13)
at async.forEachOfSeries.async.eachOfSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:284:9)
at _parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:688:9)
at Object.async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:710:9)
at next (/usr/local/lib/node_modules/titanium/lib/hook.js:232:11)
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/cli/commands/build.js:28:5
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/titanium-sdk/lib/titanium.js:116:3
at Object.exports.execFile (child_process.js:712:9)
at exports.exec (child_process.js:591:18)
at async.series.cached (/Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/node-appc/lib/android.js:86:4)
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:486:21
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:185:13
at iterate (/Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:108:13)
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:119:25
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:187:17
at /Users/HezlyMohamed/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/node_modules/async/lib/async.js:491:34
安装有关吗?需要帮忙。有趣的是,对于我安装的另一个NodeJS
和Titanium SDK 3.3.0.GA
进行测试,错误没有出现,表明钛安装对于构建应用程序是可行的,但我无法使用他们因为模块限制。
任何人都可以帮助我,并给我一些解决方案的步骤。请不要告诉我升级到新的appcelerator平台..它不会解决我的问题,因为应用程序无法使用高级Titanium SDK进行编译。
提前致谢。
答案 0 :(得分:1)
您需要更新Titanium SDK,至少您必须将版本升级到钛版本4.1.0 GA。 现在苹果还需要构建支持ARMV 64位架构,否则你的构建将不会被App Store接受,这个功能你也不会在3.1.2 GA中获得这个你需要升级sdk,所以最好的选择是你升级到钛4.1.0 GA或最新的钛合金5.2.2 GA。
3.1.2 sdk是完全过时的钛sdk所以请升级sdk。
希望这能解决您的问题。