{ "id": "162604", "key": "TIMOB-23781", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-09-08T06:31:20.000+0000", "created": "2016-08-15T22:50:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.5.0" ], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [ { "id": "56603", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "171772", "key": "TIMOB-26116", "fields": { "summary": "iOS: Images are skewed on iOS 8", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-12T01:41:59.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": "Image assets are distorted in apps built with Xcode 8.0 (10.0 SDK) on iOS8 devices. For a default two-tabbed classic application with an ImageView, it affects:\r\n- The LaunchScreen Icon.\r\n- The two Tab Icons.\r\n- The Custom Image within the ImageView.\r\n\r\n*This does not occur in Simulators.*\r\n*This does not occur with iOS9 / iOS10.*\r\n*When reverting to Xcode 7.3 (9.3 SDK), the issue is no longer reproducible.*\r\n*This affects Classic & Alloy Projects.*\r\n\r\nh3. TEST CODE:\r\n{code:java}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar image = Ti.UI.createImageView({\r\n image:'facebookIcon.png'\r\n});\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin1.add(image);\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code}\r\n\r\n\r\nh2. Steps to Reproduce\r\n1. Create a Classic Mobile Application.\r\n2. Paste test code into the app.js file.\r\n3. Add your own Custom Image to the Resources Directory and specify the image name under {{Ti.UI.createImageView}}'s image property.\r\n4. Build to iOS8 device.\r\n5. Launch App and observe the LaunchScreen / ImageView / Tab bar.\r\n\r\nh2. Actual Result\r\n\r\nImage Assets are distorted on an iOS8 device with Xcode 8.0\r\n\r\nh2. Expected Result\r\n\r\nImage Assets should not be distorted on an iOS8 device with Xcode 8.0", "attachment": [ { "id": "60051", "filename": "IMG_0207.PNG", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-15T22:53:19.000+0000", "size": 33380, "mimeType": "image/png" }, { "id": "60050", "filename": "IMG_0209.PNG", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-15T22:53:23.000+0000", "size": 73436, "mimeType": "image/png" }, { "id": "60052", "filename": "IMG_0210.PNG", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-15T22:53:17.000+0000", "size": 58687, "mimeType": "image/png" }, { "id": "60058", "filename": "screenshot-1.png", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-16T22:17:34.000+0000", "size": 8424, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS8: Image Assets are distorted with Xcode 8.0 ", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "iPhone 6 (8.2) Device & Simulator\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160815115302\r\nAppc Studio: 4.7.0.201607250649\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 6.0.0-25\r\nXcode 8.0 beta 5 (8S193k)\r\nNode v4.4.7", "comment": { "comments": [ { "id": "393224", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "-Please also attach some screens.- And to ensure: This only affect iOS8-devices from Xcode 8 (SDK 10.0)? 7.x, 9.x and 10.0 unaffected as you said?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-15T22:54:18.000+0000", "updated": "2016-08-16T07:38:47.000+0000" }, { "id": "393225", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Screenshots uploaded, Can confirm that iOS9 / 10 are not affected by Xcode 8.0, Will have to test with iOS7. ", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-15T23:07:33.000+0000", "updated": "2016-08-15T23:07:33.000+0000" }, { "id": "393248", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~htbryant] I'm assuming that you are using the default new app, so in your tiapp.xml you should be seeing\r\ntrue\r\ntrue\r\n\r\nCan you try setting app thinning to false to see what happens? (or a combination of true/false) to see what's the result.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-16T07:26:21.000+0000", "updated": "2016-08-16T07:26:21.000+0000" }, { "id": "393253", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I just tried with an iPhone 5 iOS 8.0.2, and can't reproduce, no matter app-thinning or enable-launch-screen-storyboard. I used *appc new --classic* to create project.\r\nAPPC CLI Core 5.4.0-31\r\nTi SDK: 5.5.0.v20160815165906\r\nAPPC NPM 4.2.7\r\n\r\nCan you try with another device?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-16T08:15:52.000+0000", "updated": "2016-08-16T08:15:52.000+0000" }, { "id": "393299", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reassigning to Kiat for now, since I don't have an iOS 8 device to test in Germany right now. [~htbryant] Please also attach the project you were using (make sure to delete the build-directory before, as well as the Resources directory if you use Alloy).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-16T17:12:48.000+0000", "updated": "2016-08-16T17:12:48.000+0000" }, { "id": "393344", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~cng] Strange, I tested this issue further and found a number of things:\r\n\r\n1. Tested on an iPhone 5S device (iOS 8.3) and found that I could not reproduce the issue at all. \r\n2. Created a new project using the CLI, Ran on the affected device and was still able to reproduce the image distortion.\r\n3. Reset the affected iPhone 6 device (iOS 8.2) completely. Below is a matrix of the app configurations I ran on this device, as well as the results. (Between each build, I deleted the app from the device, cleaned the project, and rebuilt the app to device).\r\n!screenshot-1.png!\r\n\r\nSimply reverting my Xcode back to 7.3 fixes the issue, additionally found a very recent StackOverflow post regarding the same issue:\r\nhttp://stackoverflow.com/questions/38972093/xcode-8-simulator-ios-8-image-get-distorted , though the cause is unclear. \r\n\r\nCurrently I have no explanation as to why this would be affecting one device but not the others, however seeing as this issue has already been reported a day after Xcode beta 6 was released, it may not be just an individual issue.\r\n\r\nTested On:\r\niPhone 6 (8.2) Device \r\niPhone 5s (8.3) Device\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160816120242\r\nAppc Studio: 4.7.0.201607250649\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 6.0.0-25\r\nXcode 8.0 beta 6 (8S193k)\r\nNode v4.4.7\r\n\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-16T22:40:26.000+0000", "updated": "2016-08-16T22:40:26.000+0000" }, { "id": "393346", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Good catch on the ticket, pretty sure it's a Xcode Beta issue then. Let's watch the ticket and I file a radar with this tomorrow.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-16T22:54:53.000+0000", "updated": "2016-08-16T22:54:53.000+0000" }, { "id": "393356", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Either it's an Xcode 8 issue, or something in assets catalog changed between Xcode 7.3.1 and Xcode 8, Specifically for iOS 8.2, and not iOS >= 8.3\r\n\r\nWill continue to investigate.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-17T03:37:46.000+0000", "updated": "2016-08-17T03:37:46.000+0000" }, { "id": "393711", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Although the interaction with the asset-catalog looks like the issue, we don't really do much more with the asset catalog than generating the hash for the unique file-name and copy it over to the .pbxproj. Let's see if the next Beta comes up with a fix for this.\r\n\r\nAnother Stackoverflow-thread: http://stackoverflow.com/questions/39094618/xcode-8-beta-6-app-image-broken-in-ios-8", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-20T23:06:12.000+0000", "updated": "2016-09-04T13:23:15.000+0000" }, { "id": "395283", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm beginning to think this is no Xcode 8 issue. Please refer to [this test-project|https://www.dropbox.com/s/jwlw99qft0z25ji/AssetCatalogTest.zip?dl=0] I made that is displaying a simple {{UIImageView}} with an image-reference to the asset catalog. When running on iOS 8.4, the image looks fine an non-distorted, see [here|https://abload.de/img/simulatorscreenshot04fupif.png]. -[~cbarber] Any special image transformation we do with asset-catalog images that might broke?-\r\n\r\n---\r\n\r\nHowever, I can't even select the iOS 8.2 simulator in Xcode, although it is installed - only 8.3, 8.4, 9.x and 10.0. I also edited the above comment with another Stackoverflow-thread that was created two weeks ago. One of the comments:\r\n\r\n{quote}\r\n[...]. I found that the same image on iPhone 4s was distorted but not on iPhone 6s. So I then tested it by disabling the 1x and 2x asset for the same image. It then started working on iPhone 4s. I hope Apple fixes this issue in the gold master.\r\n{quote}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-04T13:02:03.000+0000", "updated": "2016-09-04T13:25:22.000+0000" }, { "id": "395580", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested with Xcode 8 GM on \r\nti SDK 5.5.0.v20160831100821\r\nappc cli 5.5.0-5\r\nappc npm 4.2.7\r\niPhone 5s (iOS 8.0.2)\r\n\r\nAnd the images are not distorted. Resolving as not our bug.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-08T06:31:06.000+0000", "updated": "2016-09-08T06:31:06.000+0000" }, { "id": "395607", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The fix in the GM was also confirmed by several Stackoverflow-users. If QE has the device where the whole thing occurred, we'd appreciate it to validate with Xcode 8 GM (8A218a) again. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-08T16:01:20.000+0000", "updated": "2016-09-08T16:01:20.000+0000" }, { "id": "415719", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:57:58.000+0000", "updated": "2017-03-24T18:57:58.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }