2

Hyperloopプロジェクトの実行に関する問題について以前に書いたことがあります。新しく作成したプロジェクトを実行して、Appcelerator Studio から Hyperloop を追加した場合、コンパイルがスタックしているように見えます。

[INFO]  Starting Hyperloop assembly
[INFO]  Skipping Hyperloop compile, no usage found ...

だから私が今したことは、次を使用してコマンドラインから実行することです:

HyperloopApp ophir$ appc run -p ios

Skipping Hyperloop compile, no usage found ...そして、次のエラーメッセージが表示された直後:

/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:581
        return callback();
         ^
ReferenceError: callback is not defined
    at HyperloopiOSBuilder.copyHyperloopJSFiles (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:581:10)
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/async.js:64:45
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
    at iterate (/Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
    at nextTickCallbackWith0Args (node.js:433:9)
    at process._tickCallback (node.js:362:13)
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at HyperloopiOSBuilder.generateStubs (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:556:10)
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
    at iterate (/Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
    at nextTickCallbackWith0Args (node.js:433:9)
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:52:16
    at Object.async.forEachOf.async.eachOf (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:236:30)
    at Object.async.forEach.async.each (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:209:22)
    at Object.compileResources (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/lib/metabase.js:440:8)
    at HyperloopiOSBuilder.compileResources (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:547:14)
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/async.js:64:51
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
    at iterate (/Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
    at nextTickCallbackWith0Args (node.js:433:9)
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at HyperloopiOSBuilder.generateSourceFiles (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:467:10)
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
    at iterate (/Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:265:13)
    at nextTickCallbackWith0Args (node.js:433:9)
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at HyperloopiOSBuilder.<anonymous> (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:454:4)
    at /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:52:16
    at replenish (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:314:29)
    at /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:326:29
    at /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/node_modules/hyperloop-metabase/node_modules/async/lib/async.js:44:16
---------------------------------------------
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:275:35
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:44:16
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:694:17
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:173:37
    at HyperloopiOSBuilder.processThirdPartyFrameworks (/Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/plugins/hyperloop/hooks/ios/hyperloop.js:236:10)
    at /Users/ophir/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:689:13
    at iterate (/Users/ophir/.appcelerator/install/5.1.0/pa2016-01-25T18:27:44.759Z | ERROR  | ti run exited with error code 1

ハイパーループを実行するにはどうすればよいですか?

4

1 に答える 1

3

解決策を見つけました。どうやらパーミッションの問題のようです - メッセージがそうでなくても。私は次の行を持っていたので:

[INFO]  Skipping Hyperloop compile, no usage found ...

プロジェクト内に最小限の Hyperloop コードを追加することにしました。

var UIView = require('UIKit/UIView');

その後、再度実行すると、次で始まる別のエラー メッセージが表示されました。

Error: spawn EACCES

これはパーミッションの問題であることを私がすでに知っていることです - そして、Hyperloop モジュールがインターネットからダウンロードされたので、それは理にかなっています.

修正は簡単で、実行するだけでした

sudo chmod -R a+rwx /appfolder

すべてがコンパイルされます。

于 2016-01-25T19:59:50.980 に答える