3

I've downloaded the latest SDK from master as explained here: http://builds.appcelerator.com/#master

I've also downloaded the latest Hyperloop from here http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module and followed the instructions in the PDF file.

I created a new Alloy project, in tiapp.xml I've created the plugin and module and ran my empty project. it didn't seem to complete compilation. it is stuck on:

[INFO] :   Alloy compiler completed successfully
[WARN] :   Hyperloop is currently available in Beta and should not be used for production applications.
[INFO] :   Starting Hyperloop assembly
[INFO] :   Skipping Hyperloop compile, no usage found ...

I have also tried downloading the Hyperloop examples project. Output was a little different there - but still did not complete compilation. Here's the output:

[INFO] :   Alloy compiler completed successfully
[WARN] :   Hyperloop is currently available in Beta and should not be used for production applications.
[INFO] :   Starting Hyperloop assembly
[INFO] :   [Hyperloop] Building CocoaPods dependencies
[WARN] :   The iOS framework "javax.crypto.KeyGenerator" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js)
[WARN] :   The iOS framework "javax.crypto.Cipher" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js)

The instruction PDF mentioned that I need to download SDK 5.2.0 - but it doesn't exists in builds - so I downloaded 6.0.0.xxxxxxx

How can I make Hyperloop run?

developer82
  • 13,237
  • 21
  • 88
  • 153

2 Answers2

0

Judging by..

[WARN] :   The iOS framework "javax.crypto.KeyGenerator" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js)
[WARN] :   The iOS framework "javax.crypto.Cipher" could not be found. Are you trying to use "JavaScriptCore" or "JBChartView" instead? (android/alloy/controllers/touchid.js)

it looks like you compile for iOS, while HL still tries to parse the Android specific controllers - which it shouldn't. This bug has already been reported at the Appcelerator JIRA and can be tracked via:

https://jira.appcelerator.org/browse/AC-563

To download a 5_2_x nightly you could use appc ti sdk install -b 5_2_x.

Fokke Zandbergen
  • 3,866
  • 1
  • 11
  • 28
  • After downloading 5_2_x compilation completed and app launched on device - but now I get the red screen saying "undefined is not an object (evaluating 'Ti.Stream.pump') at app.js (line 231)" – developer82 Jan 16 '16 at 16:56
  • on a new project (not the examples) it's still stuck on "Skipping Hyperloop compile, no usage found ..." – developer82 Jan 16 '16 at 17:03
  • Ok, so it seems like there's a bug where if the hyperloop compiler doesn't find anything to do it says it skips but in fact it hangs (probably doesn't call a callback). You could easily find out by adding a require for some kind of native API. To report a bug with Appcelerator go to https://jira.appcelerator.org – Fokke Zandbergen Jan 16 '16 at 19:27
  • As for `Ti.Stream.pump`, that's something LiveView uses. Do you have that enabled perhaps? – Fokke Zandbergen Jan 16 '16 at 19:43
  • @developer82 I've found an Appcelerator JIRA ticket for the original issue you had. I ran into it myself with the latest 5_2_X as well: https://jira.appcelerator.org/browse/AC-563 – Fokke Zandbergen Jan 16 '16 at 19:50
  • No. just ran the example project as is and got `Ti.Stream.pump` message – developer82 Jan 17 '16 at 04:28
  • I can't understand the difference between the example project and a newly created project that doesn't pass compilation. I even tried coping `tiapp.xml` entirely from one to another and the module and pluging from the example project - nothing. – developer82 Jan 17 '16 at 04:37
  • @developer82 could you create a new question for the `Ti.Stream.pump` problem so that we can close this one which has been reproduced and reported as bug? – Fokke Zandbergen Jan 17 '16 at 11:02
  • Hi, any idea why I can't run Hyperloop on a new project? would be happy to send you any log you need... – developer82 Jan 18 '16 at 17:17
  • That's where you get the `Ti.Stream.pump` error with right? On a new project. Could you create a separate question for that so we don't mix up that error with the one that started this question? – Fokke Zandbergen Jan 19 '16 at 10:46
  • No. I get `Ti.Stream.pump` on the example project. New project doesn't pass compilation - it stops at `[INFO] : Starting Hyperloop assembly` – developer82 Jan 19 '16 at 11:24
  • Anyway, it's a different error. If you could create a new question for that, then we'll continue there OK? – Fokke Zandbergen Jan 22 '16 at 10:40
  • posted here: https://stackoverflow.com/questions/34999704/hyperloop-compilation-error – developer82 Jan 25 '16 at 18:30
0

This issue has been fixed with Titanium SDK 5.4.0.GA and Hyperloop 1.2.0.

Hans Knöchel
  • 11,422
  • 8
  • 28
  • 49