Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15119] iOS: Support multiple JS files in native/Hybrid module development.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2013-09-12T17:20:34.000+0000
Affected Version/sRelease 2.1.4, Release 3.1.1, Release 3.1.2
Fix Version/sn/a
ComponentsiOS
LabelsiOS, mobilesdk, module, titanium
ReporterAshish Nigam
AssigneeIngo Muschenetz
Created2013-09-11T09:45:55.000+0000
Updated2017-03-29T22:22:31.000+0000

Description

When we add multiple JS files inside assets folder and use common JS (require pattern) between JS calling in Native iOS Module development then it does not work. Steps to reproduce: 1: Create a native iOS module. let say module name is test and id is com.example.test. 2: Create two or more java script files inside assets folder. 3: Rename one js file to **com.example.test.js** and require another js file inside com.example.test.js 4: Try to use objective C API exposed through module as well as common JS pattern based APIs exposed from JS files in app.js. 5: try to build and run the module now. Result: it will fail, as it won't be able to find JS file which is required in **com.example.test.js**. Note: For shorter and quick test about the above described process, simply use the below mentioned/attached module zips and after unzip try to build them. Error message will describe the issue properly. test.zip and testone.zip are two module zips created using TiSDK version 3.1.2.GA and 2.1.4.GA respectively.

Attachments

FileDateSize
test.zip2013-09-11T09:45:55.000+0000116297
testone.zip2013-09-11T09:45:55.000+0000107267

Comments

  1. Varun Joshi 2013-09-12

  2. Ingo Muschenetz 2013-09-12

    Appears to be a duplicate of (or at least related to) the linked ticket. Closing based on user feedback.
  3. ralph valeriote 2013-09-27

    I am not able to get this to work. I've tried the posted solution without luck. Can someone post a working example? Varun?
  4. Lee Morris 2017-03-29

    Closing ticket with reference to the linked issues.

JSON Source