GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-09-12T17:20:34.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.1.1, Release 3.1.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | iOS, mobilesdk, module, titanium |
Reporter | Ashish Nigam |
Assignee | Ingo Muschenetz |
Created | 2013-09-11T09:45:55.000+0000 |
Updated | 2017-03-29T22:22:31.000+0000 |
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.
Appears to be a duplicate of (or at least related to) the linked ticket. Closing based on user feedback.
I am not able to get this to work. I've tried the posted solution without luck. Can someone post a working example? Varun?
Closing ticket with reference to the linked issues.