无法从appcellerator钛设置

时间:2015-09-17 01:56:10

标签: titanium

我正在进行全新的Titanium Appcelerator安装,我无法启动任何ios演示。任何想法将不胜感激!

设置/环境:

  • iOS 9目标
  • Appcelerator Studio,build:4.3.0.201509151348 Build:jenkins-appcelerator-rcp-master-322(origin / master)日期:2015年9月15日,13:48:44
  • MacOS Host

ti info yield:

```

gcohen @:〜$ ti info Titanium命令行界面,CLI版本5.0.3,Titanium SDK版本4.0.0.GA 版权所有(c)2012-2015,Appcelerator,Inc。保留所有权利。

请将错误报告给http://jira.appcelerator.org/

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:194         扔掉;               ^ TypeError:无效版本:android.0.0     在新的SemVer(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:273:11)     比较时(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:460:10)     at gte(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:509:10)     在cmp(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:526:22)     在Comparator.test(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:599:10)     at testSet(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:922:17)     在Range.test(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:914:9)     at satisfies(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / semver / semver.js:935:16)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / version.js:156:33     在Array.some(本机) ---------------------------------------------     at Object.run(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:59:8)     at find(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:96:14)     在q.process(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:809:21)     at processImmediate(timers.js:358:17) ---------------------------------------------     at async.setImmediate(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:110:15)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:768:21     at Array.forEach(native)     at _each(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:46:24)     at _insert(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:753:11)     在q.push上(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:782:15)     at findExecutable(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:113:8)     在任务。(匿名函数)(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / titanium-sdk / lib / android.js:863:4)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:524:25 ---------------------------------------------     at Object.run(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:59:8)     at find(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:96:14)     在q.process(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:809:21)     at processImmediate(timers.js:358:17) ---------------------------------------------     at async.setImmediate(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:110:15)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:768:21     at Array.forEach(native)     at _each(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:46:24)     at _insert(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:753:11)     在q.push上(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / node_modules / async / lib / async.js:782:15)     at findExecutable(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / node-appc / lib / subprocess.js:113:8)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / titanium -sdk / lib / android.js:181:6     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / titanium-sdk / lib / android.js:156:5 ---------------------------------------------     at async.setImmediate(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:96:15)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:696:21     at Array.forEach(native)     at _each(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:32:24)     在_insert(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:681:11)     在q.push上(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:708:15)     在async.parallel.ndk(/ Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / titanium-sdk / lib / android.js:170:10)     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:524:25     at / Users / gcohen / Library / Application Support / Titanium / mobilesdk / osx / 4.0.0.GA / node_modules / async / lib / async.js:111:13 ---------------------------------------------     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:275:35     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:44:16     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:694:17     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:173:37     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16     完成后(/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:248:21)     在对象。 (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:44:16)     在CLI._fireHookCallback(/usr/local/lib/node_modules/titanium/lib/hook.js:269:12)     at /usr/local/lib/node_modules/titanium/lib/hook.js:248:10 ---------------------------------------------     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:275:35     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:44:16     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:694:17     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:173:37     在detectMissingArguments(/usr/local/lib/node_modules/titanium/lib/cli.js:695:13)     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:689:13     在iterate(/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:265:13)     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:277:29     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:44:16 ---------------------------------------------     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:275:35     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:44:16     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:694:17     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:173:37     在CLI。 (/usr/local/lib/node_modules/titanium/lib/cli.js:523:9)     at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:689:13     在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) gcohen @:〜$ ```

我正在尝试运行一个空白向导创建的应用程序,或者随IDE一起提供的演示,但无论我什么时候运行,都会收到此错误:

Appcelerator Command-Line Interface, version 5.0.0 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "/Users/gcohen/.appcelerator/install/5.0.0/package", "/Users/gcohen/.appcelerator/install/5.0.0/package/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules", "/Applications/Appcelerator Studio/node_modules", "/Applications/node_modules", "/node_modules", "/Users/gcohen/.appcelerator/.npm/lib/node_modules" ] DEBUG | [PLUGIN-LOAD] 0ms /Users/gcohen/.appcelerator/install/5.0.0/package/appc.js DEBUG | [PLUGIN-LOAD] 440ms /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/appc.js DEBUG | [PLUGIN-LOAD] 0ms /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/arrow/appc.js log level set to "trace" executing command "run" set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"} checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1442533156493 false +---------------------------------------------------------------------------------------+ + This is a Developer trial account. You may use this software for evaluation purposes. + + Once you are ready to go to production, upgrade at https://billing.appcelerator.com + +---------------------------------------------------------------------------------------+ Arrow Cloud config file: /Users/gcohen/.acs found Arrow Cloud login { mid: 'b754bb58143fbed982e2b8d45aff3aaf32689c32', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', username: 'geremy+titanium@pubnub.com', cookie: [ 'connect.sid=s%3AB4sWpL1Oyx8DjlyvJVolWlWA.I%2BP9AIOngeHGiyMtZKFk%2F3JzlF1IcPEQEYivsqSGkEw; Path=/; Expires=Thu, 17 Sep 2015 23:39:21 GMT; HttpOnly' ], defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com Arrow Cloud cookie expiry [ 1442533161000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "10.96.69.80", "username": "REMOVED", "password": "<OMITTED>", "session": "<OMITTED>", "nonce": "<OMITTED>", "environment": { "name": "production", "isProduction": true, "acsBaseUrl": "https://api.cloud.appcelerator.com", "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com", "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com" }, "token": "<OMITTED>", "fingerprint": "b754bb58143fbed982e2b8d45aff3aaf32689c32", "fingerprint_description": "Mac OSX Serial Number: REMOVED", "org_id": 100067615, "expiry": 1442533156493 } loading plugins for command "run" run search paths: [ "/Users/gcohen/.appcelerator/install/5.0.0/package", "/Users/gcohen/.appcelerator/install/5.0.0/package/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules", "/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules", "/Applications/Appcelerator Studio/node_modules", "/Applications/node_modules", "/node_modules", "/Users/gcohen/.appcelerator/.npm/lib/node_modules" ] [PLUGIN-LOAD] 0ms /Users/gcohen/.appcelerator/install/5.0.0/package/appc.js [PLUGIN-LOAD] 374ms /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/appc.js run plugin: /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium [PLUGIN-LOAD] 0ms /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/arrow/appc.js run plugin: /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/arrow plugin "arrow" failed its "when" function check, skipping... loading plugin "titanium" for command "run" CLI options via function loading plugin "titanium" for command "run" CLI options via array Duplicate option "colors" for command "run", removing... executing command "run" with the following plugins: ["titanium"] TRACE | Attempting to load session info from config file TRACE | check if session is invalidated TRACE | session expiry 1442533156493 false TRACE | session already loaded in opts.session DEBUG | Titanium Downloads Last Checked: 1442447830270 TRACE | "/usr/local/bin/node" "/Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" config -o json-object WARN | failed to parse titanium config file WARN | Cannot read property 'selected' of undefined ERROR | TypeError: Cannot read property 'selected' of undefined at usedDifferentSDK (/Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/plugins/run.js:116:30) at /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/plugins/run.js:68:49 at /Users/gcohen/.appcelerator/install/5.0.0/package/node_modules/appc-cli-titanium/plugins/util.js:145:11 at ChildProcess.exithandler (child_process.js:735:7) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1008:16) at Socket.<anonymous> (child_process.js:1176:11) at Socket.emit (events.js:107:17) at Pipe.close (net.js:476:12)

提前谢谢。

1 个答案:

答案 0 :(得分:1)

我已经解决了这个问题(&#34;无效版本:android.0.0&#34;)。 对我来说问题是在&#34; PATH_TO_SDK / build-tools&#34;文件夹中有一个名字很少的文件夹(在我的情况下是&#34; android_4.4&#34;)而其他所有文件夹都是&#34; 25.0.1&#34;。

所以我删除了它,一切正常。

希望它有所帮助。