[AC-2909] Ti.Platform.model no longer shows Simulator in iOS 5 GM build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-10-20T11:15:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | ios, iphone |
Reporter | Shaun Berryman |
Assignee | Matthew Apperson |
Created | 2011-10-08T18:46:30.000+0000 |
Updated | 2016-03-08T07:47:53.000+0000 |
Description
Q&A: http://developer.appcelerator.com/question/126581/tiplatformmodel-no-longer-shows-simulator-in-ios-5-gm-build
Commit 49cd32799d seems to have broken Ti.Platform.model as it no longer reports "iPhone Simulator" or "Simulator" in the iPhone Simulator.
commit 49cd32799d (https://github.com/appcelerator/titanium_mobile/commit/49cd32799dc87f5b4aea81d1d44d6ab635a691b5)
This is what is now returned when using iOS 5 GM and Titanium SDK version: 1.7.3.v20111007133015
* This is has nothing to do with the iOS SDK as I've tried 4.3.2 and it returns the same data.
Can you please commit a change that will fix this issue so I can check to see if the app is running in the simulator?
Ti.Platform.username is returning 'iPhone Simulator'
Could you please verify if this is still an issue with the GA of Ti SDK 1.7.3, as well as iOS5. If the issue still exists, please post a complete use-case and code sample. Once I have those things I can go ahead and accept the ticket. Best regards, Matt
It still is an issue in the 1.7.5 release. You can find a complete usecase in your ARti example, for example here: https://github.com/appcelerator-titans/ARti/blob/master/Resources/cameraar.js#L335 Rather 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:
Regards, Carsten
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). Thanks in advance