2015-11-26 67 views
3

個人而言,我在編輯鈦工作室時出現問題...(節點)系統已被棄用。改用util。 - Titanium Appcelerator

(節點)sys已棄用。改用util。

我不知道什麼可能是想法...需要幫助....

(node) sys is deprecated. Use util instead. 
/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:49 
     throw new Error('Missing compatible node-ios-device library'); 
     ^
Error: Missing compatible node-ios-device library 
    at loadIosDeviceModule (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:49:9) 
    at Object.devices (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:66:2) 
    at Object.detect (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/lib/device.js:68:12) 
    at devices (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/index.js:102:11) 
    at /Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:570:21 
    at /Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:249:17 
    at /Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:125:13 
    at Array.forEach (native) 
    at _each (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:46:24) 
    at async.each (/Users/silviosampaio/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:124:9) 
--------------------------------------------- 
    at Object.run (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8) 
    at find (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14) 
    at /Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:945:13 
    at Immediate.q.process (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:913:25) 
    at processImmediate [as _immediateCallback] (timers.js:383:17) 
--------------------------------------------- 
    at Object.setImmediate (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:200:9) 
    at _insert (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:861:19) 
    at Object.q.push (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:888:17) 
    at Object.findExecutable (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:113:8) 
    at resolveNode (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/titanium.js:97:34) 
    at /Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/titanium.js:74:5 
    at Object.<anonymous> (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/titanium.js:80:2) 
    at Module._compile (module.js:425:26) 
    at Object.Module._extensions..js (module.js:432:10) 
2015-11-26T02:57:17.679Z | TRACE | titanium exited with exit code 1 
2015-11-26T02:57:17.680Z | ERROR | Error: ti run exited with error code 1 
    at ChildProcess.<anonymous> (/Users/silviosampaio/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/plugins/run.js:92:23) 
    at emitTwo (events.js:87:13) 
    at ChildProcess.emit (events.js:172:7) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
2015-11-26T02:57:17.680Z | TRACE | Sending exit signal to titanium process: 63173 
[ERROR] Application Installer abnormal process termination. Process exit value was 1 
+0

你用什麼版本的的NodeJS? Titanium 4.0.x支持NodeJS> = 0.10.0 <= 0.12.x –

+2

在撰寫本文時,使用最新版本的鈦sdk,它是5.1.1。用這個更新你的'tiapp.xml':' 5.1.1.GA' –

回答

2

一個可能的原因錯誤是每個鈦版本似乎有一個小範圍的support for different xcode versions。要解決這個問題,你只需要安裝支持你當前安裝的xcode版本的版本。

工作室

在片場,你可以通過選擇check for titanium sdk updates做到這一點。您可能還需要更新tiapp.xml中的sdk-version

開源CLI

對於使用開放源碼的CLI可以安裝它,像這樣的人:

titanium sdk install --branch 5_1_X --default