超级循环编译错误

Hyperloop compilation error

我之前写过一个关于 运行ning 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

如何制作超级高铁 运行?

我找到了解决方案。显然这似乎是一个权限问题 - 即使消息并非如此。因为我有以下行:

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

我决定在项目中添加一个最小的 Hyperloop 代码:

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

然后,当我再次 运行 时,我收到一条不同的错误消息,开头为:

Error: spawn EACCES

我已经知道这是权限问题 - 由于 Hyperloop 模块是从互联网上下载的,所以这是有道理的。

修复很简单,只需 运行

sudo chmod -R a+rwx /appfolder

编译一切。