{ "id": "172220", "key": "TIMOB-26389", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-14T17:24:02.000+0000", "created": "2018-09-13T14:02:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-17T09:28:01.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": "When building a blank application or with just console.log/console.time.\r\n\r\nThe following error is shown:\r\n{code:java}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : CompileC /Users/Samir/Desktop/newWS/T5/build/iphone/build/Intermediates/T5.build/Debug-iphoneos/T5.build/Objects-normal/armv7/TiViewProxy.o /Users/Samir/Desktop/newWS/T5/build/iphone/Classes/TiViewProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}\r\n\r\n*Steps to reproduce:*\r\n# Create a titanium application \r\n# Run the app blank or with something similar to: \r\n{code:java}\r\nconsole.time('mytimer'); // Start timer\r\nconsole.timeLog('mytimer'); // Log time taken so far\r\nconsole.timeLog('mytimer', 'with', 'some', 'extra', 'info'); // Log time taken with extra logging\r\nconsole.timeLog('mytimer', [ 'a', 'b', 'c' ], { objects: true }); // Should handle Arrays and Objects\r\nconsole.timeEnd('mytimer');\r\n{code}\r\n\r\n*Expected result*\r\nApplication should still build and the console should output something similar to (if the code above is used):\r\n{code:java}\r\n[INFO] mytimer: 1ms\r\n[INFO] mytimer: 2ms with some extra info\r\n[INFO] mytimer: 3ms [\"a\",\"b\",\"c\"] {\"objects\":true}\r\n[INFO] mytimer: 3ms\r\n{code}\r\n\r\n*Actual result*\r\nBuild fails and above error is shown.\r\n\r\n", "attachment": [ { "id": "65522", "filename": "tlog.txt", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-13T14:02:30.000+0000", "size": 239567, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Application throws an error if there is no Ti.UI.Window reference", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "APPC Studio: 5.1.0.201808080937\r\nAPPC CLI: 7.0.6\r\niphone 6 (12.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13.6\r\nNode.js Version: 8.9.1\r\nXcode 10.0 beta 6", "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441556", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed] I think this issue will be in previous versions as well e.g. 6.3.0+. Can you please verify once?\r\n\r\nIn my environment I am not able to reproduce this issue. For me macro 'USE_TI_UIWINDOW' is always getting generated in define.h (may be some environment issue for me) . If I comment macro 'USE_TI_UIWINDOW' in define.h, I am able to reproduce the issue.\r\n\r\n\r\nPR (master) - https://github.com/appcelerator/titanium_mobile/pull/10324\r\nPR (7_4_X) - https://github.com/appcelerator/titanium_mobile/pull/10323\r\n\r\nTest Case-\r\n 1. Mentioned in this ticket\r\n 2. Test cases from TIMOB-25301", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-14T07:05:55.000+0000", "updated": "2018-09-14T07:15:28.000+0000" }, { "id": "441573", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-14T14:55:37.000+0000", "updated": "2018-09-14T14:55:37.000+0000" }, { "id": "441577", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Quick summary of the root cause: We implemented safe-area support in SDK 6.3.0 to our Ti.UI.Window. But due to our conditional compiling (by using preprocessor statements like {{USE_TI_UIWINDOW}}). It seems like we missed one of them, but to be clear: In real apps, there will *always* be at least one window, so this is a minor issue. I'd vote for putting it into 7.5.0, not 7.4.0, since this is not iOS 12 related and no 7.4.0 / 7.x regression.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-14T15:51:04.000+0000", "updated": "2018-09-14T15:51:04.000+0000" }, { "id": "441611", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified fix in SDK Version: {{7.5.0.v20180914153007}}. Application no longer throws an error when using a blank app.\r\n\r\n*FR Passed: Test Steps*\r\n# Created a new Titanium application \r\n# Deleted all code\r\n# Ran the application \r\n# Application ran without throwing an error \r\n# This time added the code mentioned in the description (for logging)\r\n# Ran the application \r\n# Application ran without throwing an error and the console displayed the correct output \r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937\r\nAPPC CLI: 7.0.7-master.1\r\niphone 6 (12.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13.6\r\nNode.js Version: 8.9.1\r\nXcode 10.0 GM Seed\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-17T09:27:46.000+0000", "updated": "2018-09-17T09:27:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }