[TIMOB-6703] iOS: Titanium.Platform.model does not return expected String.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-01-23T16:59:19.000+0000 |
| Affected Version/s | Release 1.7.5, Release 1.8.0, Release 1.8.0.1 |
| Fix Version/s | Sprint 2012-02, Release 2.0.0, Release 1.8.1 |
| Components | iOS |
| Labels | parity |
| Reporter | Qing Gao |
| Assignee | Sabil Rahim |
| Created | 2011-12-15T14:39:22.000+0000 |
| Updated | 2012-03-04T22:01:02.000+0000 |
Description
The Titanium.Platform.model API returns "x86_64" instead of "Simulator" as shown in line 58 of https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/accelerometer.js
Repro Steps
Build a project to run the following code on iPhone Simulator.
var win1 = Ti.UI.createWindow({});
Titanium.API.info("Titanium.Platform.name= "+Titanium.Platform.name);
Titanium.API.info("Titanium.Platform.model= "+Titanium.Platform.model);
win1.open();
Closing bug. Verified fix on: SDK build: 1.9.0.v20120117114633 Titanium Studio, build: 1.0.8.201201131907 OS: Mac OS X Lion (10.7.1) Device: iphone 4S (5.0.1)