Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5303] Can't compile with Hyperloop 2.2.0 - EACCES error

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2017-10-24T07:39:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsHyperloop
Labelseacces, hyperloop
ReporterFabian Martinez
AssigneeShak Hossain
Created2017-10-23T16:45:40.000+0000
Updated2017-10-24T07:39:31.000+0000

Description

Projects started to fail compiling after Hyperloop upgrade to v2.2.0. In particular those that use ti.firebase. This may be related but I'm not sure. Anyway, I tried creating a new project (CLI) and building it, it compiled without problems, then I added this line to index.js:
var UIView = require('UIKit/UIView');
and this is the error I get when I try to compile (CLI with TRACE):
[INFO]  Removing files
[DEBUG] Removing empty directories
[INFO]  Starting Hyperloop assembly
[TRACE] Forcing a metabase rebuild
[TRACE] [Hyperloop] forcing generation of metabase to /Users/Fabi/Documents/Workspace/Titanium/Hello/build/hyperloop/ios/metabase-8.0-iphonesimulator-9b465e413386ce27e3a586bd622bf7f8.json
[TRACE] [Hyperloop] running /Users/Fabi/Library/Application Support/Titanium/plugins/hyperloop/2.2.0/hooks/ios/node_modules/hyperloop-metabase/bin/metabase with -i /Users/Fabi/Documents/Workspace/Titanium/Hello/build/hyperloop/ios/metabase-8.0-iphonesimulator-9b465e413386ce27e3a586bd622bf7f8.h -o /Users/Fabi/Documents/Workspace/Titanium/Hello/build/hyperloop/ios/metabase-8.0-iphonesimulator-9b465e413386ce27e3a586bd622bf7f8.json -sim-sdk-path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -min-ios-ver 8.0 -pretty
2017-10-23T16:28:36.711Z | ERROR  | An uncaught exception was thrown!
spawn EACCES
2017-10-23T16:28:36.712Z | ERROR  | spawn EACCES
I tried giving full recursive permissions to the /build folder, the /app folder and finally to the whole project folder but I always get the same error. Any suggestion is welcome! I'm really stuck here. UPDATE: This is the error I mentioned related to ti.firebase in case you find it useful. It was compiling and working fine on Friday Oct 20th:
[TRACE] [Hyperloop] Generating includes for static framework GoogleToolboxForMac (/Users/Fabi/Documents/Workspace/Titanium/xxx/modules/iphone/ti.firebase/1.3.1/platform/GoogleToolboxForMac.framework)
[TRACE] [Hyperloop] Static framework, parsing all header files
2017-10-23T16:48:17.537Z | ERROR  | An uncaught exception was thrown!
ENOENT: no such file or directory, scandir '/Users/Fabi/Documents/Workspace/Titanium/xxx/modules/iphone/ti.firebase/1.3.1/platform/GoogleToolboxForMac.framework/Headers'
2017-10-23T16:48:17.538Z | ERROR  | ENOENT: no such file or directory, scandir '/Users/Fabi/Documents/Workspace/Titanium/xxx/modules/iphone/ti.firebase/1.3.1/platform/GoogleToolboxForMac.framework/Headers'
UPDATE 2: I don't know why but I could compile the project after executing this:
chmod -R 777 “/Users/Fabi/Library/Application Support/Titanium/plugins/hyperloop”

Comments

  1. Hans Knöchel 2017-10-24

    Fixed in Hyperloop 2.2.1, see TIMOB-25426. Simple workaround:
       chmod +x "~/Library/Application Support/Titanium/plugins/hyperloop/2.2.0/hooks/ios/node_modules/hyperloop-metabase/bin/metabase"
       

JSON Source