{ "id": "92476", "key": "TIMOB-9294", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13403", "description": "Sprint 2012-11 Core", "name": "Sprint 2012-11 Core", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T03:23:43.000+0000", "created": "2012-05-29T10:08:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "module_build", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-13T16:05:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Fail case / Test case\r\n\r\n* In Terminal, execute the following:\r\n\r\n{code}\r\npython [path_to_mobile_sdk]/titanium.py create --type=module --platform=iphone --name=testmod --id=ti.testmod --dir=.\r\n{code}\r\n\r\n* 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:\r\n\r\n{code}\r\nexports.hello = function() {return \"hello from test module\";};\r\n{code}\r\n\r\n* In the module project folder, run {{python build.py}} to build the module.\r\n\r\nDuring the build process, you should notice a warning similar to this (though build is allowed to continue):\r\n\r\n{code}\r\nUsers/bill/tmp/mods/barker/Classes/TiBarkerModuleAssets.m:29:9: warning: implicit declaration of function 'filterDataInRange' is invalid in C99 [-Wimplicit-function-declaration]\r\n return filterDataInRange([NSData dataWithBytesNoCopy:data length:sizeof(data) freeWhenDone:NO], ranges[0]);\r\n ^\r\n{code}\r\n\r\nIn my fix branch, you shouldn't see that warning.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Module build warning when commonjs file present", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile 2.1.0 (i.e., master branch -- I'm at hash 2f3b094fd)", "comment": { "comments": [ { "id": "196352", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR ready:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2285", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-05-29T13:51:49.000+0000", "updated": "2012-05-29T13:51:49.000+0000" }, { "id": "201231", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with \r\nTitanium Studio, build: 2.1.1.201206291424\r\nTitanium SDK: 2.1.0.v20120628121617\r\nMac OS X Lion 10.7.4\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-02T11:51:32.000+0000", "updated": "2012-07-02T11:51:32.000+0000" }, { "id": "202887", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T03:23:08.000+0000", "updated": "2012-07-12T03:23:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }