{ "id": "81252", "key": "AC-2909", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-10-20T11:15:04.000+0000", "created": "2011-10-08T18:46:30.000+0000", "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:53.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Q&A: http://developer.appcelerator.com/question/126581/tiplatformmodel-no-longer-shows-simulator-in-ios-5-gm-build\r\n\r\nCommit 49cd32799d seems to have broken Ti.Platform.model as it no longer reports \"iPhone Simulator\" or \"Simulator\" in the iPhone Simulator.\r\n\r\ncommit 49cd32799d (https://github.com/appcelerator/titanium_mobile/commit/49cd32799dc87f5b4aea81d1d44d6ab635a691b5)\r\n\r\nThis is what is now returned when using iOS 5 GM and Titanium SDK version: 1.7.3.v20111007133015\r\n\r\n* This is has nothing to do with the iOS SDK as I've tried 4.3.2 and it returns the same data.\r\n\r\nCan you please commit a change that will fix this issue so I can check to see if the app is running in the simulator?\r\n\r\nTi.Platform.username is returning 'iPhone Simulator'", "attachment": [], "flagged": false, "summary": "Ti.Platform.model no longer shows Simulator in iOS 5 GM build", "creator": { "name": "shaun@shaunberryman.com", "key": "shaun@shaunberryman.com", "displayName": "Shaun Berryman", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shaun@shaunberryman.com", "key": "shaun@shaunberryman.com", "displayName": "Shaun Berryman", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "[INFO] Titanium SDK version: 1.7.3.v20111007133015\r\n[INFO] iPhone Device family: iphone\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone", "comment": { "comments": [ { "id": "169859", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you please verify if this is still an issue with the GA of Ti SDK 1.7.3, as well as iOS5.\r\n\r\nIf the issue still exists, please post a complete use-case and code sample.\r\n\r\nOnce I have those things I can go ahead and accept the ticket.\r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T11:14:49.000+0000", "updated": "2011-10-20T11:14:49.000+0000" }, { "id": "172021", "author": { "name": "carkraus", "key": "carkraus", "displayName": "Carsten Kraus", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It still is an issue in the 1.7.5 release.\r\n\r\nYou can find a complete usecase in your ARti example, for example here:\r\nhttps://github.com/appcelerator-titans/ARti/blob/master/Resources/cameraar.js#L335\r\n\r\nRather than using a string that appears to change in each release, I suggest providing a flag which developers can safely use to distinguish if they're in simulator or not, like:\r\n\r\n{code:javascript} \r\n/**\r\n * @type {Boolean}\r\n */\r\nTi.Platform.isSimulator = false;\r\n{code}\r\n\r\nRegards, \r\nCarsten", "updateAuthor": { "name": "carkraus", "key": "carkraus", "displayName": "Carsten Kraus", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-09T02:46:22.000+0000", "updated": "2011-11-09T02:48:07.000+0000" }, { "id": "183568", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:13.000+0000", "updated": "2012-02-17T02:23:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }