{ "id": "103008", "key": "TIMOB-11336", "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": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-10-10T22:10:16.000+0000", "created": "2012-10-09T23:28:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-28T21:10:24.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": "10207", "name": "Tooling" } ], "description": "In 2.1, we introduced a new feature to add custom info.plist values directly into the tiapp.xml file, in place of the old hard-coded titanium-specific flags.\r\n\r\nHowever, the new system lacks the ability to specify device-specific keys.\r\n\r\nSpecifies which interface orientations this application supports. In particular, we've introduced the UISupportedInterfaceOrientations key as an alternative to the older:\r\n\r\n{code}\r\n.\r\n{code}\r\n\r\nHowever, it's less functional than the previous version, because there's no way to specify a device type.\r\n\r\nIn the raw plist format, you can introduce a device specifier as a suffix to the device key:\r\n\r\n{code}\r\nUIInterfaceOrientation\r\nUIInterfaceOrientationPortrait\r\nUIInterfaceOrientation~ipad\r\nUIInterfaceOrientationLandscapeRight\r\n{code}\r\n\r\nHowever, adding code like this to the tiapp.xml file causes the build to fail with the following error:\r\n\r\n{code}\r\n[ERROR] Error: Traceback (most recent call last):\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121009034227/iphone/builder.py\", line 1069, in main\r\n applogo = ti.generate_infoplist(infoplist,appid,devicefamily,project_dir,iphone_version)\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121009034227/tiapp.py\", line 580, in generate_infoplist\r\n newcontent += '\\t%s\\n\\t%s\\n' %(p,v)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 8: ordinal not in range(128)\r\n{code}", "attachment": [], "flagged": false, "summary": "Tooling: Device-specific Info.plist entries in tiapp.xml cause builder to fail", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "222878", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is supported in the new CLI. I wonder if this issue also happens in the new CLI. Have you tried?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-10T07:21:03.000+0000", "updated": "2012-10-10T07:21:03.000+0000" }, { "id": "222991", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue appears to be a rogue UTF-8 character in the tiapp.xml file, unrelated to the issue at hand, probably from cutting and pasting stuff from Apple's docs.\r\n\r\nMy bad.\r\n\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T22:10:16.000+0000", "updated": "2012-10-10T22:10:16.000+0000" }, { "id": "416057", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T21:10:24.000+0000", "updated": "2017-03-28T21:10:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }