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

iOS: Module build warning when commonjs file present

    Details

      Description

      Fail case / Test case

      • In Terminal, execute the following:

      python [path_to_mobile_sdk]/titanium.py create --type=module --platform=iphone --name=testmod --id=ti.testmod --dir=.
      

      • After the test module project is created, create a file within it: assets/ti.testmod.js. Inside the file just put a simple exports statement such as:

      exports.hello = function() {return "hello from test module";};
      

      • In the module project folder, run python build.py to build the module.

      During the build process, you should notice a warning similar to this (though build is allowed to continue):

      Users/bill/tmp/mods/barker/Classes/TiBarkerModuleAssets.m:29:9: warning: implicit declaration of function 'filterDataInRange' is invalid in C99 [-Wimplicit-function-declaration]
              return filterDataInRange([NSData dataWithBytesNoCopy:data length:sizeof(data) freeWhenDone:NO], ranges[0]);
                     ^
      

      In my fix branch, you shouldn't see that warning.

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code