Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27202] IOS:Rebuilding app on device throws Couldn't find module error

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-07-15T12:26:03.000+0000
Affected Version/sRelease 8.1.0
Fix Version/sRelease 8.1.0
ComponentsiOS
LabelsengSchedule, regression
ReporterKeerthi Mahalingam
AssigneeJan Vennemann
Created2019-07-02T04:38:36.000+0000
Updated2019-07-15T12:26:03.000+0000

Description

*Steps To Reproduce:* 1.Create a classic/alloy app with latest 8_1_X sdk or master. 2.Run against iOS device 3.Re run against same device again. *Expected:* App should get installed and should be able to launch successfully *Actual:* Throws the following error after launching [ERROR] : column = 25; [ERROR] : line = 9498; [ERROR] : message = "Couldn't find module: ./app for architecture: arm64"; [ERROR] : sourceURL = "file:///var/containers/Bundle/Application/EC162335-7334-496E-B04D-39FFDFBAE114/test23.app/ti.main.js"; [ERROR] : stack = " at require@[native code]\n at require(/ti.main.js:9498:25)\n at (/ti.main.js:9719:10)\n at loadAsync(/ti.main.js:9642:13)\n at global code(/ti.main.js:9716:10)"; [ERROR] : toJSON = ""; [ERROR] : } [WARN] : Cannot serialize object, trying to repair ... [WARN] : Found invalid attribute "toJSON" that cannot be serialized, skipping it ... Notes: Works fine on 8.0.2 GA and happens only on master and 8.1_x rerunning the same app on 2 times or 3 times throws error

Comments

  1. Samir Mohammed 2019-07-02

    Also able to reproduce this. Tested on SDK 8.1.0.v20190701132634
  2. Christopher Williams 2019-07-02

    cc [~jvennemann] Possibly more fall out from the incremental build changes?
  3. Jan Vennemann 2019-07-02

    [~cwilliams], maybe, i'm already checking what's going on!
  4. Jan Vennemann 2019-07-03

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/11023 PR (8_1_X): https://github.com/appcelerator/titanium_mobile/pull/11024
  5. Satyam Sekhri 2019-07-09

    FR Passed. Waiting on Jenkins build.
  6. Christopher Williams 2019-07-12

    merged to 8_1_X, waiting on full build for master...
  7. Christopher Williams 2019-07-12

    merged to master
  8. Samir Mohammed 2019-07-15

    Closing ticket, fix verified in SDK version 8.1.0.v20190712141959 and SDK version 8.2.0.v20190712143331. Test and other information can be found at: PR (master): https://github.com/appcelerator/titanium_mobile/pull/11023 PR (8_1_X): https://github.com/appcelerator/titanium_mobile/pull/11024

JSON Source