[TIMOB-26671] Hyperloop does not load in TitaniumKit
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-08T16:55:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 8.0.0 |
Components | Hyperloop, iOS |
Labels | n/a |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2018-12-19T22:10:18.000+0000 |
Updated | 2019-01-18T23:06:21.000+0000 |
Description
Hyperloop does not load since the introduction of TitaniumKit. This is due to Hyperloop initialization being controlled by compile time constants which are not available inside TitaniumKit.
*Steps to reproduce the behavior*
Try to run the hyperloop-examples project using Titanium SDK 8.0.0 and Hyperloop 4.0.0
*Actual behavior*
The app starts with an error that the
Hyperloop
variable is undefined.
*Expected behavior*
The app boots without an error and all examples work as expected.
PR (titanium): https://github.com/appcelerator/titanium_mobile/pull/10552 PR (hyperloop): https://github.com/appcelerator/hyperloop.next/pull/313
I get an error on build while testing these PRs, {noformat} [TRACE] ld: warning: directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/CocoaAsyncSocket' [TRACE] ld: warning: directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/CocoaSSDP' [TRACE] ld: warning: directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView' [TRACE] ld: warning: [TRACE] directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/JBChartView' [TRACE] ld: warning: [TRACE] directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/MMMarkdown' [TRACE] ld: warning: directory not found for option '-F/Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/Shimmer' [TRACE] ld: framework not found CocoaAsyncSocket [TRACE] clang [TRACE] : error [TRACE] : linker command failed with exit code 1 (use -v to see invocation) [ERROR] ** BUILD FAILED ** [ERROR] The following build commands failed: [ERROR] Ld /Users/Josh/Documents/GitHub/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/Hyperloop_Sample.app/Hyperloop_Sample normal x86_64 [ERROR] (1 failure) {noformat} The whole build log can be found [here](https://gist.github.com/longton95/a293d4a2ee081b27a9d7b0dc1b26a930)
Verified the fix with SDK 8.0.0.v20190117115226 & hyperloop 4.0.1. Closing. Studio Ver: 5.1.2.201812191831 SDK Ver: 8.0.0.v20190117115226 OS Ver: 10.14 Xcode Ver: Xcode 10.1 Appc NPM: 4.2.13 Appc CLI: 7.0.10-master.5 Daemon Ver: 1.1.3 Ti CLI Ver: 5.1.1 Alloy Ver: 1.13.7 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 10.0.2 Hyperloop: 4.0.1