{ "id": "117712", "key": "TIMOB-14683", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:39:48.000+0000", "created": "2013-07-29T15:36:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.2.0" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "31580", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "118528", "key": "TIMOB-14884", "fields": { "summary": "iOS: device builds don't use platform-specific files for commonjs 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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "30438", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "117558", "key": "ALOY-760", "fields": { "summary": "Generate runtime files to Titanium platform-specific folders", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-21T19:42:16.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h2. problem\r\n\r\nDespite the presence of a platform-specific app.js file, the Titanium CLI will fail to build with the following error if there is no app.js directly in the Resources folder. This behavior seems to affect all supported platforms.\r\n\r\n{code}\r\n[ERROR] app.js not found\r\n\r\nEnsure the \"app.js\" file exists in your project's \"Resources\" directory.\r\n{code}\r\n\r\nTo make it a little more clear, even if *Resources/iphone/app.js* exists, the error still occurs on iOS builds if *Resources/app.js* does not, despite the fact that it would be unused.\r\n\r\nh2. expected\r\n\r\nApps should not require *Resources/app.js* if they have the appropriate platform-specific app.js for the current build.\r\n\r\nh2. reproduce\r\n\r\n# Create a new Titanium app\r\n# Move the app.js file to the *Resources/iphone* directory\r\n# Build the app for iOS\r\n# You should get the error listed above in the problem section", "attachment": [], "flagged": false, "summary": "CLI: Titanium fails to build when only platform-specific app.js is present", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.2.v20130726192706", "comment": { "comments": [ { "id": "263643", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alloy is aiming to compile entirely to platform-specific folders in order to facilitate LiveView multi-platform executions. Alloy can work around this by leaving an empty app.js in the Resources folder, but this is redundant and unnecessary clutter. It would be ideal to have this resolved to clean up the Resources folder, but it is not critical for Alloy's current progress.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-29T15:38:03.000+0000", "updated": "2013-07-29T15:38:03.000+0000" }, { "id": "269809", "author": { "name": "simonr", "key": "simonr", "displayName": "Simon R", "active": true, "timeZone": "Europe/London" }, "body": "I'm seeing much more serious problems here on 3.1.2.GA on iOS: \r\n\r\n- Building to the iOS simulator works fine\r\n- However when I build to the device (either from CLI or XCode) the blank /app.js rather than iphone/app.js is being used, and therefore the app doesn't run at all", "updateAuthor": { "name": "simonr", "key": "simonr", "displayName": "Simon R", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-05T19:56:21.000+0000", "updated": "2013-09-05T19:56:21.000+0000" }, { "id": "269811", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe [~simonr]'s concern is the one I brought forth in TIMOB-14884", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-05T20:12:07.000+0000", "updated": "2013-09-05T20:12:07.000+0000" }, { "id": "273917", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4760", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-05T00:27:47.000+0000", "updated": "2013-10-05T00:27:47.000+0000" }, { "id": "275833", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:39:48.000+0000", "updated": "2013-10-19T01:39:48.000+0000" }, { "id": "280598", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nTitanium Studio, build: 3.2.0.201311200322\nCLI 3.2.0-alpha\nXcode 5.0.2\nTitanium SDK, build: 3.2.0.v20131119142443\niPhone5s iOS 7.0.2\n\nCreated a default project>moved app.js into Resources/iphone> built for device\n\nNo errors.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T19:41:56.000+0000", "updated": "2013-11-21T19:41:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }