{ "id": "61809", "key": "TIMOB-1177", "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": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-03T15:14:26.000+0000", "created": "2011-04-15T02:45:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_filesystem", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-03T15:14:26.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": "{html}

Using 1.3.1, resources contained in the device specific\r\ndirectory do not copy to the resources folder. However, they do\r\nwhen deployed to the actual device.

\r\n

For example, for 'logo.png' in the iphone directory: when\r\nlaunched in the simulator, it fails to load, but when launched on\r\nthe device, it is successful.

{html}", "attachment": [], "flagged": false, "summary": "iOS: Device resource folder not working in simulator", "creator": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125014", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Could also be an Android issue; going to have to check it\nout.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:56.000+0000", "updated": "2011-04-15T02:45:56.000+0000" }, { "id": "159985", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h3.Problem\r\nThis issue is still present on TiStudio 1.7.1. Every time is attempted to run this on the simulator crashed. It works fine on 1.6.2.\r\n\r\nh3.Environment\r\n{noformat}\r\n Product: Mobile\r\n Titanium SDK: Mobile 1.7.1\r\n Platform OS: iOS\r\n Platform OS Version: SDK 4.2\r\n{noformat}\r\n\r\nh4.GIT hash SDK Version\r\nhttps://gist.github.com/1093847\r\n\r\nh4.Repro sequence\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar sText1, sText2;\r\n\r\nvar resources = Titanium.Filesystem.resourcesDirectory;\r\n\r\nif (Titanium.Platform.name == 'iPhone OS') {\r\n\tresources = '/';\r\n}\r\nTitanium.include(resources + 'myinc.js');\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:sText1,\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:sText2,\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nh3.Under resources/iphone \r\n{code:title=iphone/myinc.js}\r\nsText1 = 'I am Window 1 on iPhone';\r\nsText2 = 'I am Window 2 on iPhone';\r\n{code}\r\n\r\nh3.Under resources/android folder\r\n{code:title=android/myinc.js}\r\nsText1 = 'I am Window 1 on android';\r\nsText2 = 'I am Window 2 on android';\r\n{code}\r\n\r\nh3.Associated HD Ticket\r\nhttp://appc.me/c/APP-174839", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-07-19T15:31:46.000+0000", "updated": "2011-07-19T15:37:23.000+0000" }, { "id": "170677", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug: Valid, occurs in:\r\n\r\nTiMOB: 1.7.4.v20111025165811 \r\nStudio: 1.0.6.201110251616 \r\nOS: OSX 10.7.2 Lion \r\nDevices tested on: iPhone Simulator 5.0, iPad Simulator 5.0 \r\n\r\nNote: This bug is limited to the simulator in 1.7.4. \r\n\r\nBug does NOT occur in: \r\nTiMOB: 1.8.0.v20111026114214 \r\nDevices tested on: \r\niPhone 5.0 \r\niPod 4.3.5 \r\niPad 4.3.5 \r\niPhone Simulator 5.0 \r\niPad Simulator 5.0 \r\n\r\nBug does NOT occur in: \r\nTiMOB: 1.7.4.v20111025165811 \r\nDevices tested on: \r\niPhone 5.0 \r\niPod 4.3.5 \r\niPad 4.3.5 \r\niPhone 3.1.2 ", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-27T13:33:07.000+0000", "updated": "2011-10-27T13:33:07.000+0000" }, { "id": "170680", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed by one of Blain's previous checkins.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-27T14:00:40.000+0000", "updated": "2011-10-27T14:00:40.000+0000" }, { "id": "175016", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified no longer occurs with SDK 1.8.0.1.v20111205164258 in iPad simulator (4.3.2, 5.0) and iPhone simulator (4.3.2, 5.0) with Titanium Studio, build: 1.0.7.201112052104", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T11:34:47.000+0000", "updated": "2011-12-06T11:34:47.000+0000" }, { "id": "177856", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add module filesystem label", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T10:11:58.000+0000", "updated": "2012-01-03T10:11:58.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }