{ "id": "79665", "key": "TIMOB-5114", "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": "12084", "description": "", "name": "Sprint 2011-44", "archived": true, "released": true, "releaseDate": "2011-11-07" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-11-07T17:17:31.000+0000", "created": "2011-08-26T01:23:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "dr-list" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "13812", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "79589", "key": "TIMOB-5096", "fields": { "summary": "iOS: Building for iOS Simulator may have issues if folders of the same name coexist in Resources/iphone and Resources.", "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 } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T05:11: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": "Including the file from iphone folder fails with error `Could not fild the file`, see steps for details\r\n\r\n*Steps to reproduce:*\r\n1. Create new Titanium Mobile project\r\n2. Add the following line to the file `*Resources/app.js*`\r\n{code}\r\nTi.include('ui.js');\r\n{code}\r\n3. Create the file `ui.js` in the folder `*Resources/iphone*` with the code \r\n{code}\r\nalert('Iphone');\r\n{code}\r\n4. Create the file `ui.js` in the folder `*Resources/android*` with the code\r\n{code}\r\nalert('Android');\r\n{code}\r\n5. Run the app in android emulator\r\n6. Run the app in iphone simulator\r\n\r\n*Actual result:*\r\nWhen running on android it works with no problem (alert appears on the screen).\r\nFor iphone it fails with error `Could not fild the file ui.js`\r\n\r\nExpected to work similar for both platforms", "attachment": [], "flagged": false, "summary": "Platform specific includes does not work for iphone", "creator": { "name": "ikucheinyk", "key": "ikucheinyk", "displayName": "Igor Kucheinyk", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ikucheinyk", "key": "ikucheinyk", "displayName": "Igor Kucheinyk", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "164297", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I can confirm the behavior with SDK 1.7.0, 1.7.1, and 1.7.2. However, platform-specific includes work as expected on iPhone with SDK 1.6.2. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-08-29T08:49:46.000+0000", "updated": "2011-08-29T08:49:46.000+0000" }, { "id": "164311", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removed 1.8.0 Release label. the code has not been merged.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T09:36:01.000+0000", "updated": "2011-08-29T09:36:01.000+0000" }, { "id": "170447", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Workaround for iphone:\r\n\r\nLet's say you have a file named {{test.js}} in your {{Resources/iphone}} directory. To include it in your project in the simulator and device, you need to use 2 different methods:\r\n\r\n* On simulator, include {{iphone/}} at the beginning of your paths. So in this case, your path should be: {{iphone/test.js}}\r\n* On device, exclude the {{iphone/}} path prefix. Your path would then simply be: {{test.js}}.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-26T05:15:08.000+0000", "updated": "2011-10-26T05:15:08.000+0000" }, { "id": "171842", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Double-checked on master, appears to work, and yes, is a duplicate of another bug in a way.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-07T17:17:31.000+0000", "updated": "2011-11-07T17:17:31.000+0000" }, { "id": "411973", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T05:11:13.000+0000", "updated": "2017-03-14T05:11:13.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }