{ "id": "141573", "key": "TIMOB-18199", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-24T01:56:05.000+0000", "created": "2014-12-15T07:19:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "44113", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "100424", "key": "TIMOB-10755", "fields": { "summary": "CLI: \"build\" command for iOS modules", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-03-16T22:09:31.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" }, { "id": "10207", "name": "Tooling" } ], "description": "iOS modules can not be built if there are any JS files inside the root assets folder.\r\n\r\nh5. Steps To Reproduce\r\n1. Create an iOS module\r\n2. Place a javascript file with some code in the assets folder at the root.\r\n3. Build the module\r\n\r\nh5. Expected Result\r\nModule should build as usual\r\n\r\nh5. Actual Result\r\nCLI is throwing following error.\r\n{code}\r\nTraceback (most recent call last):\r\n File \"build.py\", line 262, in \r\n compile_js(manifest,config)\r\n File \"build.py\", line 84, in compile_js\r\n root_asset, module_assets = compiler.compile_module()\r\n File \"/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py\", line 431, in compile_module\r\n root_asset = self.compile_commonjs_file(self.appid+'.js', os.path.join(self.assets_dir, self.appid+'.js'))\r\n File \"/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py\", line 564, in compile_commonjs_file\r\n self.compile_js_file(path, from_, js_files)\r\n File \"/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py\", line 578, in compile_js_file\r\n self.compile_js_asset_file(path,from_)\r\n File \"/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py\", line 545, in compile_js_asset_file\r\n file_contents = open(os.path.expanduser(file)).read()\r\nIOError: [Errno 2] No such file or directory: '/Users/kvelummaylum/Documents/Appcelerator_Studio_Workspace/ModuleTest/iphone/assets/ti.iostest.js'\r\n{code}\r\n\r\nh5.Workaround\r\nWe need to move the assets folder inside iphone folder.", "attachment": [ { "id": "56487", "filename": "HelloWorld.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-21T17:48:43.000+0000", "size": 219157, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: iOS modules can not build if there any JS files inside assets folder", "creator": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141212180914\r\nAppc-Studio: 3.4.1 GA\r\nTitanium CLI: 3.4.1 GA\r\nAlloy : 1.5.1 GA\r\nXcode : 6.1\r\nOS: OSX 10.10.1", "closedSprints": [ { "id": 288, "state": "closed", "name": "2014 Sprint 25 Tooling", "startDate": "2014-12-08T17:30:22.215Z", "endDate": "2014-12-20T02:30:00.000Z", "completeDate": "2014-12-29T18:24:09.765Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "336562", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6487\r\n\r\nFunctional Test:\r\n1. Create an iOS module : {code} ti create -p ios -t module -d . -n test -u http:// --id com.example.test {code}\r\n2. Create a JS file follow the naming convention of {{\\[module id\\].js}}, in this case {{com.example.test.js}}, under the {{test/assets}} folder\r\n3. In the module platform folder, run {code} ./build.py {code}\r\n4. The module should be built with no error\r\n\r\n\\\\\r\n\r\nNOTE: \r\nAccording to [iOS Module Development Guide|http://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Module_Development_Guide]\r\n{quote}\r\nStarting with Release 3.3.0, the Titanium CLI generates a module project containing multiple platforms. The module contains platform folders, for example, iphone, that contain platform-specific resources and common folders for assets, documentation and examples. \r\n{quote}", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-12-16T11:30:49.000+0000", "updated": "2014-12-16T11:30:49.000+0000" }, { "id": "342456", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "CR & FR passed, PR merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-06T20:34:34.000+0000", "updated": "2015-02-06T20:34:34.000+0000" }, { "id": "345861", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nTitanium SDK 4.0.0.v20150312092612\r\nStudio 4.0.0.201503062102\r\nCLI 3.4.2\r\nXcode 6.2\r\nNode 0.12\r\n\r\nModule building completed without error.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-12T18:13:36.000+0000", "updated": "2015-03-12T18:13:36.000+0000" }, { "id": "360751", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/7060", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-08-21T22:35:16.000+0000", "updated": "2015-08-21T22:35:16.000+0000" }, { "id": "360829", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "APPROVED. PR merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T01:55:56.000+0000", "updated": "2015-08-24T01:55:56.000+0000" }, { "id": "413284", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:09:31.000+0000", "updated": "2017-03-16T22:09:31.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }