{ "id": "141527", "key": "TIMOB-18193", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-07T06:38:04.000+0000", "created": "2014-12-12T16:31:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-automatedtest" ], "versions": [], "issuelinks": [ { "id": "48488", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149960", "key": "TIMOB-19274", "fields": { "summary": "CLI: When building for iOS device the app will always be 32-bit", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-29T00:06:20.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": "We hard coded 32-bit.\r\n\r\nNeed to make this based on whether we are building for 64-bit or 32-bit.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/PlatformModule.m#L39\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: 64-bit Platform reports wrong value for iOS", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 291, "state": "closed", "name": "2015 Sprint 01 SDK", "startDate": "2015-01-03T01:00:00.000Z", "endDate": "2015-01-17T01:00:00.000Z", "completeDate": "2015-01-19T17:24:40.828Z", "originBoardId": 114 }, { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "336155", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Since we need to determine whether we're building for 32-bit or 64-bit to resolve this ticket, that target should be exposed so that the CLI can check. This would give us a non-hooks way of resolving TIMOB-18176 and TIMOB-18168.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-12T16:46:12.000+0000", "updated": "2014-12-12T16:46:12.000+0000" }, { "id": "336165", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "since 64-bit is required going forward, maybe it's as easy as just hardcoding to 64-bit? ", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T16:57:14.000+0000", "updated": "2014-12-12T16:57:14.000+0000" }, { "id": "336173", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Would hard-coding 64-bit prevent developers form including both 32-bit and 64-bit builds in an app (to support pre-iOS8 devices)?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-12T17:15:26.000+0000", "updated": "2014-12-12T17:15:26.000+0000" }, { "id": "336199", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h6. PRs\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6475\r\n3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6476\r\n\r\nh6. Test case:\r\n# Run the code below\r\n# Tap on the window and the correct ostype and architecture for your device/sim should be printed in the log\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\nwin.open();\r\nwin.addEventListener('click', function(e) {\r\n console.log('ostype: ' + Ti.Platform.ostype);\r\n console.log('architecture: ' + Ti.Platform.architecture);\r\n});\r\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T18:47:14.000+0000", "updated": "2014-12-12T18:47:14.000+0000" }, { "id": "338080", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reopening ticket as when using the following configuration with the above code, Ti.Platform.ostype returns 32bit which is incorrect. \r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20150106102524\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1)", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-07T00:45:27.000+0000", "updated": "2015-01-07T00:45:27.000+0000" }, { "id": "338083", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h5. PRs\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6545\r\n3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6544\r\n\r\nh5. To Test:\r\n1. From Studio or using the CLI, build an app for device (that is 64bit) using the example code above\r\n2. You should see the following statements in the log\r\n{code}\r\n[INFO] ostype: 64bit\r\n[INFO] architecture: arm64\r\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T00:53:34.000+0000", "updated": "2015-01-07T00:58:08.000+0000" }, { "id": "338141", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Both PRs tested with iPhone 5s, iPhone 4, iPhone 6, and iPad 2.\r\nLooks good. PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T06:37:49.000+0000", "updated": "2015-01-07T06:37:49.000+0000" }, { "id": "338190", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20150106224118\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\nAnd the devices below\r\n\r\nDevices give the following output\r\n\r\n||Device and iOS Version||osType||architecture||Correct||\r\n|iPhone 4 - 7.0.6|32 Bit|armv7|(/)|\r\n|iPhone 4s - 8.1.1|32 Bit|armv7|(/)|\r\n|iPhone 5 - 8.1|32 Bit|armv7|(/)|\r\n|iPhone 5s - 8.0.2|64 Bit|arm64|(/)|\r\n|iPhone 6 - 8.1|64 Bit|arm64|(/)|\r\n|iPhone 6 Plus - 8.1.1|64 Bit|arm64|(/)|\r\n|iPad 4 - 8.0.2|32 Bit|armv7|(/)|\r\n|iPad Air - 7.0.3|64 Bit|arm64|(/)|\r\n|iPad Air 2 - 8.2b3|64 Bit|arm64|(/)|\r\n|iPad Mini- 7.0.3 |32 Bit|armv7|(/)|\r\n|iPad Mini 2 8.1.1|32 Bit|armv7|(/)|\r\n\r\nWhen running *xcrun lipo -info * on the binary within the .app file the following was output in the terminal *Architectures in the fat file: Test are: armv7 arm64*\r\n\r\nSimulators give the following ouput\r\n\r\n||Simulator and iOS Version||osType||architecture||Correct||\r\n|iPhone 4s, iPhone 5 , iPad 2 and iPad Retina - 8.1|32 Bit|i386|(/)|\r\n|iPhone 5s, iPhone 6 Plus, iPhone 6 and iPad Air - 8.1|64 Bit|x86_64|(/)|\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-07T18:50:28.000+0000", "updated": "2015-01-07T18:50:28.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }