{ "id": "92063", "key": "AC-2906", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-19T15:42:53.000+0000", "created": "2012-05-21T08:37:19.000+0000", "labels": [ "device", "ios", "simulator" ], "versions": [], "issuelinks": [], "assignee": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "updated": "2016-03-08T07:47:52.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When building the app for simulator, Titanium uses the correct file from the platform specific folder (iphone). When running on device, platform specific file is not loaded, but instead file used from the resources folder.\r\n\r\nWay to duplicate:\r\n1. Create new titanium mobile project (single page)\r\n2. Run the app on simulator and device - Works fine.\r\n3. Copy the file from resources/ui/common/FirstView.js to resources/iphone/ui/common/FirstView.js\r\n4. modify label to include additional info, indicating located in iPhone folder.\r\n5. Clean project.\r\n6. Run on simulator. Correct file used.\r\n7. Run on device. File from resources/ui/common/FirstView.js is used, instead of platform specific.\r\n8. If the file from resources/ui/common is removed, build to device uses correct file (platform specific), but then generates Slider related error (second bug).", "attachment": [ { "id": "27833", "filename": "applicationerror.log", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T08:37:19.000+0000", "size": 2741, "mimeType": "text/plain" }, { "id": "27829", "filename": "iOS Simulator Screen shot May 21, 2012 9.05.52 AM.png", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T08:37:19.000+0000", "size": 10936, "mimeType": "image/png" }, { "id": "27830", "filename": "iOS Simulator Screen shot May 21, 2012 9.13.25 AM.png", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T08:37:19.000+0000", "size": 11818, "mimeType": "image/png" }, { "id": "27832", "filename": "iPhone.png", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T08:37:19.000+0000", "size": 40373, "mimeType": "image/png" }, { "id": "27831", "filename": "iPhone Error.png", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T08:37:19.000+0000", "size": 86731, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Build for device does not use platform specific folder", "creator": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.7.4\r\nTitanium Studio 2.0.1.201204132053\r\nSDK 2.0.1.GA2\r\nSDK 2.1.0.v20120518141721\r\niOS 5.1\r\niPhone 4S\r\nXCODE Version 4.3.2 (4E2002)", "comment": { "comments": [ { "id": "197056", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi,\r\n\r\nDid you try cleaning the project before installing it onto the device and also removing the previous built app from the device so we are sure that there is no reference to it?\r\n\r\nThanks,\r\nVarun", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-04T11:44:18.000+0000", "updated": "2012-06-04T11:44:18.000+0000" }, { "id": "197113", "author": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I did try that. Several times, including creating a brand new test project(different id and folder) with the same results: when the file was in the iPhone folder, it generated the error as you can see in the screenshot", "updateAuthor": { "name": "mor_eli", "key": "mor_eli", "displayName": "Eli Mor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-04T12:48:30.000+0000", "updated": "2012-06-04T12:48:30.000+0000" }, { "id": "197114", "author": { "name": "joel.bohrer", "key": "joel.bohrer", "displayName": "Joël Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Varun,\r\n\r\nBefore making your comment, did you try it yourself ? I have found the same problem, I have lost a few hours because of it, I can even explain you why it fails (or at least where you can watch), but I think you could at least try and verify, instead of making such a comment. Your community wants to help you, not to make you lose time.\r\n\r\nWhen you compile for the device, and watch the build.log, you can see that builder copy all files from specific folders to \"build/Resources\", but then it compiles from the original folder that's why it doesn't take care about specific files.\r\nIt's in /Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/compiler.py, around line 559 (and its callee, of course).\r\n\r\nThank you for trying it.\r\n\r\nJoel", "updateAuthor": { "name": "joel.bohrer", "key": "joel.bohrer", "displayName": "Joël Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-04T12:54:37.000+0000", "updated": "2012-06-04T12:54:37.000+0000" }, { "id": "199630", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-21T13:22:57.000+0000", "updated": "2012-06-21T13:22:57.000+0000" }, { "id": "200236", "author": { "name": "zman0900", "key": "zman0900", "displayName": "Dan Ziemba", "active": true, "timeZone": "America/New_York" }, "body": "I am experiencing what is probably the same bug. Attempting to use Ti.UI.iPhone.createNavigationGroup from any file within '/Resources/iphone/ui/' causes the following error:\r\n\r\n[ERROR] Script Error = 'undefined' is not an object (evaluating 'Ti.UI.iPhone.createNavigationGroup') (unknown file).\r\n\r\nNo error appears if the code is run on the iphone simulator, but then running it on the device causes the error to happen both on the device and subsequent runs on the simulator until the project is cleaned. I've tried with several different types of iDevices with different os versions and both deploying through itunes and with ad-hoc. I've tried cleaning the project, deleting the build folder, creating a new project and coping only essential parts to run just iphone stuff, and finally an empty project with just the essential code for creating a nav group. All attempts have resulted in the same errors, so I think it must be related to this bug.", "updateAuthor": { "name": "zman0900", "key": "zman0900", "displayName": "Dan Ziemba", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-25T23:16:40.000+0000", "updated": "2012-06-25T23:16:40.000+0000" }, { "id": "201073", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi Dan,\r\n\r\nDid you try this with the latest CI Build? The issue is resolved in that build.\r\n\r\nThanks,\r\nVarun", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-02T09:16:58.000+0000", "updated": "2012-07-02T09:16:58.000+0000" }, { "id": "208537", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Issue fixed in latest CI.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-19T15:42:53.000+0000", "updated": "2012-07-19T15:42:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }