2

我有一个应用程序,去年在早期版本的 sdk 上运行良好,但现在 Titanium SDK 5.2.2.GA 找不到 iOS 设备。我尝试清理有关 appcelerator 的所有内容并重新安装,但没有运气。我还尝试安装node-ios-device为全局包并安装在 Titan sdk 5.2.2 文件夹中。我还可以做些什么?我收到以下错误:

2016-05-11T09:34:54.590Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/appc.js
(node:2212) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
2016-05-11T09:34:54.651Z | DEBUG  | [PLUGIN-LOAD] 61ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium/appc.js
2016-05-11T09:34:54.651Z | DEBUG  | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium
2016-05-11T09:34:54.652Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow/appc.js
2016-05-11T09:34:54.654Z | DEBUG  | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow
2016-05-11T09:34:54.656Z | TRACE  | plugin "arrow" failed its "when" function check, skipping...
2016-05-11T09:34:54.657Z | TRACE  | loading plugin "titanium" for command "run" CLI options via function
2016-05-11T09:34:54.658Z | TRACE  | loading plugin "titanium" for command "run" CLI options via array
2016-05-11T09:34:54.660Z | TRACE  | executing command "run" with the following plugins:
["titanium"]
2016-05-11T09:34:54.661Z | TRACE  | Attempting to load session info from config file
2016-05-11T09:34:54.662Z | TRACE  | check if session is invalidated
2016-05-11T09:34:55.350Z | TRACE  | session expiry 1463560847951 false
2016-05-11T09:34:55.351Z | TRACE  | session already loaded in opts.session
2016-05-11T09:34:55.352Z | DEBUG  | Titanium Downloads Last Checked: 1462957150130
2016-05-11T09:34:55.480Z | TRACE  | No project alloy hook; skipping update to 1.0.0
2016-05-11T09:34:56.100Z | ERROR  | An uncaught exception was thrown!
Cannot read property 'devices' of undefined
2016-05-11T09:34:56.101Z | ERROR  | Cannot read property 'devices' of undefined
2016-05-11T09:34:56.101Z | TRACE  | TypeError: Cannot read property 'devices' of undefined
    at iOSBuilder.<anonymous> (/Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/iphone/cli/commands/_build.js:298:11)
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:115:12
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:721:13
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:52:16
    at done (/Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:241:17)
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:44:16
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:718:17
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:167:37
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:85:6
    at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/device.js:51:12
4

2 回答 2

6

对于遇到这种情况的任何人,问题是 NodeJS 版本,我有 v6.2.0 并降级到 v4.4.4。现在一切正常。

于 2016-05-24T21:44:25.220 回答
1

感谢 Adi,我遇到了完全相同的 Node v6.2.0 问题并降级到 v4.4.x 并且对我也有效。

于 2016-05-26T21:35:26.267 回答