{ "id": "155844", "key": "TIMOB-20597", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-08T22:19:36.000+0000", "created": "2016-03-19T12:11:38.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:30.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "Since Titanium SDK 5 we [inject|https://github.com/appcelerator/titanium_mobile/blob/31c9c3996583022a7d86b2fcf3f3a44a0611e39b/iphone/cli/commands/_build.js#L3517] and [default|https://github.com/appcelerator/titanium_mobile/blob/bbb64b89eaf8fbe15b74b2d4ede9aba092ad45c3/iphone/iphone/Titanium.plist#L39] to include:\r\n\r\n{code:xml}\r\nNSAppTransportSecurity\r\n\r\n NSAllowsArbitraryLoads\r\n \r\n\r\n{code}\r\n\r\nOne of the things that requires this is LiveView.\r\n\r\nIf you are using Titanium SDK 4.x or even 3.x and build against iOS SDK 9 this key will not be injected and LiveView will not work saying:\r\n\r\n{code}\r\nCouldn't find module: localStrings for architecture: x86_64\r\n{code}\r\n\r\nWhich can be debugged to:\r\n\r\n{code}\r\nTransport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.\r\n{code}\r\n\r\nWhen an app is build with LiveView enabled, LiveView should inject {{NSAllowsArbitraryLoads}} so that you can use LiveView with older Titanium SDKs as well.\r\n\r\n*However*, as found by [~developer82] on [SO|http://stackoverflow.com/a/36088576/4626813] this seem to happen on Titanium 5.x as well. No idea why the key isn't inserted correctly.", "attachment": [], "flagged": false, "summary": "LiveView: Does not work with iOS SDK 9 because missing NSAllowsArbitraryLoads", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "380179", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think we should resolve this ticket as invalid. We added support for iOS 9 in Ti.SDK 5.0, so people are encouraged to upgrade if they want to support iOS 9 features.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-20T12:00:11.000+0000", "updated": "2016-03-20T12:00:11.000+0000" }, { "id": "380183", "author": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've reported this on SO. I'm using iOS9, the latest Appcelerator Studio and the* latest SDK (5.2.0)*. And I'm having this problem.", "updateAuthor": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-20T13:26:06.000+0000", "updated": "2016-03-20T13:26:06.000+0000" }, { "id": "380229", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Thanks for the update [~developer82]. Could you remove the key you manually added from {{tiapp.xml}}, clean, build and check the generated {{build/iphone/Info.plist}} to verify if it indeed is missing the key? Could you also include the full {{}} section of your {{tiapp.xml}}?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-03-21T09:18:04.000+0000", "updated": "2016-03-21T09:20:44.000+0000" }, { "id": "423726", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue no longer occurs on latest SDK versions (5.x, 6.x) anymore.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-08T22:19:36.000+0000", "updated": "2017-07-08T22:19:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }