Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28154] Build failing on 9.2.0 with Hyperloop

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-10-06T18:25:39.000+0000
Affected Version/sRelease 9.2.0
Fix Version/sRelease 9.2.1
ComponentsHyperloop
Labelsn/a
Reporterkaypro
AssigneeJan Vennemann
Created2020-09-24T15:41:16.000+0000
Updated2020-10-06T18:25:39.000+0000

Description

Upgrading a classic App from 9.0.1 to 9.2.0. Using Hyperloop 6.0.1 with podfile as below and getting error:
[INFO]  Creating assets image set
[INFO]  Writing bootstrap json
[INFO]  Writing i18n files
[INFO]  Processing Titanium symbols
[INFO]  Removing files
[INFO]  Starting Hyperloop assembly
[WARN]  Unable to detect framework umbrella header for ti.identity.
[WARN]  Unable to detect framework umbrella header for hyperloop.
2020-09-24T15:45:48.916Z | ERROR  | An uncaught exception was thrown!
(buildSettings.LD_RUNPATH_SEARCH_PATHS || "").replace is not a function
2020-09-24T15:45:48.916Z | ERROR  | (buildSettings.LD_RUNPATH_SEARCH_PATHS || "").replace is not a function
Process exited with 1
The terminal process terminated with exit code: 1.
Podfile: install! 'cocoapods', :integrate_targets => false use_frameworks! platform :ios, '10.0' target 'Test' do pod 'FSCalendar' pod 'Stripe' pod 'EDHexColor' end Tried downgrading to Hyperloop 5.0.3 with same result. Reverting back to 9.0.1 builds fine.

Comments

  1. Rene Pot 2020-09-24

    Confirmed this on my end! This seems to happen without liveview. With liveview it seems to not cause any issues. To reproduce, just add both a module and hyperloop to tiapp, then require in your app.
           <module>ti.map</module>
           <module>hyperloop</module>
       
    Then compile the app to iOS. Also does not seem to happen on Android
  2. kaypro 2020-09-24

    Thanks Rene. Just FYI that on my end this error occurs with or without liveview enabled.
  3. Rene Pot 2020-09-24

    Good addition. For me it only happens runtime, and not while building. Did you clean your project before compiling?
  4. Caio Perdona 2020-09-24

    Getting a similar behavior here. Building for iOS simulator, without liveview, Ti is throwing the following log:
       [ERROR] Script Error {
       [ERROR]     column = 21;
       [ERROR]     line = 101;
       [ERROR]     message = "Couldn't find module: /hyperloop/ti.map/ti.map for architecture: x86_64";
       [ERROR]     sourceURL = "file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/app.js";
       [ERROR]     stack = "require@[native code]\nfile:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/app.js:101:21\nglobal code@file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/app.js:250:70\nrequire@[native code]\nfile:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14247:10\nloadAsync@file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14175:13\nglobal code@file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14244:10";
       [ERROR]     type = Error;
       [ERROR] }
       [ERROR] Script Error {
       [ERROR]     column = 10;
       [ERROR]     line = 14247;
       [ERROR]     message = "Module \"app.js\" failed to leave a valid exports object";
       [ERROR]     sourceURL = "file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js";
       [ERROR]     stack = "require@[native code]\nfile:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14247:10\nloadAsync@file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14175:13\nglobal code@file:///Users/perdona/Library/Developer/CoreSimulator/Devices/1A397A41-4BCF-4A12-97CE-9E985ACA538F/data/Containers/Bundle/Application/1C94A667-0032-48FC-9918-2393F9276823/engajai.app/ti.main.js:14244:10";
       [ERROR]     type = Error;
       [ERROR] }
       
    I'm using Xcode 12, SDK 9.2.0, node 12.X. App builds, but when it starts, it crashes with log above.
  5. Caio Perdona 2020-09-24

    Also, here it seems to be erratic with liveview: SOmetimes it runs fine, sometimes it crashes with the same log.
  6. kaypro 2020-09-24

    Yes. Clean build each time. Thanks.
  7. Jim Infante 2020-09-27

    having the same issue. both new versions of Ti.Map and Hyperloop has error.
  8. Marcus Olovsson 2020-09-27

    I'm also experiencing this when building to device with the Facebook module and Hyperloop
  9. Rene Pot 2020-09-27

    Hi all, this issue will happen for many modules and Hyperloop enabled. Right now the workaround is xcode 11 + SDK 9.1.x until this fix is merged.
  10. Lokesh Choudhary 2020-10-01

    FR Passed.
  11. Christopher Williams 2020-10-05

    hyperloop 6.0.2 merged to master and 9_2_X (for 9.2.1 target)
  12. Lokesh Choudhary 2020-10-06

    Verified the fix with SDK 9.2.1.v20201005155347. Closing.

JSON Source