Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15119

iOS: Support multiple JS files in native/Hybrid module development.


    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: Release 2.1.4, Release 3.1.1, Release 3.1.2
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium Mobile SDK, iOS, Module Development.


      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.




            • Assignee:
              ingo Ingo Muschenetz
              anigam Ashish Nigam
            • Watchers:
              0 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  Sync status:
                  Last received:
                  Last sent:

                  Git Integration