{ "id": "160541", "key": "TIMOB-23674", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-01T02:44:05.000+0000", "created": "2016-05-26T14:36:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "qe-5.4.0", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-08-15T05:10:11.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": "I was working perfectly on iOS, when suddenly this error appeared without change any cody:\r\n\r\n\r\n{code:java}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC build/Intermediates/App.build/Debug-iphoneos/App.build/Objects-normal/armv7/TiUIiOSProxy.o Classes/TiUIiOSProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}\r\n\r\nNow, I can't compile the app. ", "attachment": [], "flagged": false, "summary": "iOS - Compilation error", "creator": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.4.0.v20160425220956\r\n SDK Path = /Users/amurcia/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160425220956\r\n Target Platform = iphone", "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "386906", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nThe issue is with your xCode. Make sure your xCode is configured in studio perfectly. Launch Xcode once for being in the safe side. Now, In the Appcelerator studio clean the project and try rebuilding with latest SDK.\r\n\r\nRegards,\r\nSharif. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-26T15:46:23.000+0000", "updated": "2016-05-26T15:46:45.000+0000" }, { "id": "387081", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You are using the SDK version {{5.4.0.v20160425220956}} from April 25. Please try the latest master and provide sample code to reproduce if it still does not work. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-28T18:23:19.000+0000", "updated": "2016-05-28T18:23:19.000+0000" }, { "id": "391345", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "Latest GA and below eg. 5.3.1GA will build for simulator and deployment without issue\r\n\r\n5.4.x and 5.6.x will only run app in Simulator\r\n\r\nFor example using 5.4.0.v20160720201924 has no problem targeting Simulator but running \r\nappc --ios --target dist-appstore always result in TiUIiOSProxy.o Classes/TiUIiOSProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compile error\r\n\r\nMy Xcode version is 7.3.1", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2016-07-23T17:42:37.000+0000", "updated": "2016-07-23T17:42:37.000+0000" }, { "id": "391346", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It's a valid issue, just reproduced it. Reopening for further investigation.\r\n\r\n*EDIT*: However, I can only reproduce it on 6.0.0 (master), not 5.4.0 (5_4_X).\r\n*EDIT2*: Actually, using both latest master and 5_4_X still don't have the error. Use {{ti sdk install -b 5_4_X}} (or {{-b master}}) to try.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-23T17:56:43.000+0000", "updated": "2016-07-23T18:10:48.000+0000" }, { "id": "391354", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "Hans, can you tell me which version of xcode you are using?", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2016-07-25T01:16:58.000+0000", "updated": "2016-07-25T01:16:58.000+0000" }, { "id": "391395", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I tested the *latest* 5_4_X build with Xcode 7.3.1 and 6.0.0 with Xcode 8 since 6.0.0 is only supposed to work with the latest Xcode due some new features and adjustments for iOS 10.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-25T07:17:41.000+0000", "updated": "2016-07-25T07:17:41.000+0000" }, { "id": "391485", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have pushed this to Release 6.0.0 pending further investigation since we can't reproduce it. \r\n[~emerriman] Can your team help to verify if this is critical for 5.4.0? Thanks!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-26T08:02:43.000+0000", "updated": "2016-07-26T08:02:43.000+0000" }, { "id": "391667", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am still very sure the current builds run through. [~htbryant] will validate the issue, if you still experience this issue, please attach a full trace-log ({{appc --ios --target dist-appstore --log-level trace}}).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-27T13:48:14.000+0000", "updated": "2016-07-27T13:48:14.000+0000" }, { "id": "392070", "author": { "name": "haZz", "key": "hazz", "displayName": "Markus Klemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have the same problem since i change some deprecated styles (branch: 5.4.0.vxxxx):\r\n- separatorInsets to listSeparatorInsets\r\n- Ti.UI.iPhone.ListViewCellSelectionStyle.NONE to Ti.UI.IOS.ListViewCellSelectionStyle.NONE\r\n- Ti.UI.iPhone.ListViewStyle.GROUPED to Ti.UI.iOS.ListViewStyle.GROUPED\r\n- Ti.UI.iPhone.SystemButtonStyle.DONE to Ti.UI.IOS.SystemButtonStyle.DONE,\r\n\r\nI don't know if this was the reason.\r\n@Hans Knoechel i send you the trace log\r\n\r\n", "updateAuthor": { "name": "haZz", "key": "hazz", "displayName": "Markus Klemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-31T18:33:45.000+0000", "updated": "2016-07-31T18:34:03.000+0000" }, { "id": "392071", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/8177\r\nPR (5_4_X): https://github.com/appcelerator/titanium_mobile/pull/8179\r\n\r\nReason (see ticket description):\r\nThe {{SystemButton}} is declared in the header-file, if the {{USE_TI_UIIOSSYSTEMBUTTON}} precompilation macro is defined. In this case, it was trying to compile it when {{USE_TI_UIIOSSYSTEMBUTTONSTYLE}} is defined, which is an unbalanced define-condition causing the build to fail for device- and dist-builds. Caused by replacing [this|https://github.com/appcelerator/titanium_mobile/commit/d5232e2373bfb2e4adb24998349ee6346df3d54a#diff-408833cabb129d280f4c1b27a346cb0bL213] with [that|https://github.com/appcelerator/titanium_mobile/commit/d5232e2373bfb2e4adb24998349ee6346df3d54a#diff-408833cabb129d280f4c1b27a346cb0bR231].\r\n\r\n[~apetkov] Any reason why you added the precompile macros there which haven't been there before? We need to be very sensitive when adding those, because the Core-SDK in Xcode auto-includes it, so it may not be seen during core-development. Please re-validate all macros again to ensure the integrity-tests all pass.\r\n\r\n*EDIT*: The reason why it only failed for some test-cases, was that if you don't use any of the \"new\" constants on the migrated iOS-namespace (TIMOB-20174), the error was not thrown, since they have been skipped. Thanks [~haZz] for reporting!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-31T18:44:38.000+0000", "updated": "2016-07-31T19:02:29.000+0000" }, { "id": "392078", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-01T02:43:50.000+0000", "updated": "2016-08-01T02:43:50.000+0000" }, { "id": "392081", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jerodfritz], [~haZz]: Please try SDK-build [5.4.0.v20160731195210|http://builds.appcelerator.com/mobile/5_4_X/mobilesdk-5.4.0.v20160731195210-osx.zip] or later, they should include the fix.\r\n\r\nSteps to test:\r\n1. Use the following demo-code:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\nvar button = Ti.UI.createButton({\r\n systemButton: Ti.UI.iOS.SystemButton.ADD\r\n});\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n2. Build the app for the device.\r\n3. The build should not fail, the button should be displayed.", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-01T04:17:55.000+0000", "updated": "2016-08-01T16:15:28.000+0000" }, { "id": "392116", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "I can confirm this has resolved my dist build error. Thank you. ", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2016-08-01T14:05:50.000+0000", "updated": "2016-08-01T14:05:50.000+0000" }, { "id": "392129", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "While covering the mass deprecation ticket I mislaid some of the properties because the volume of changes, I should have triple-checked. Good catch [~hansknoechel], will go through the rest of the macros to make sure another wasn't misplaced. \r\n\r\nHey [~haZz], make sure to use lower-case i for iOS and it should work. Tested with the following demo-code on the newest 5.4.0 and 6.0.0. Thanks. \r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\nvar listView = Ti.UI.createListView({\r\n\tstyle: Ti.UI.iOS.ListViewStyle.GROUPED,\r\n\r\n});\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\r\nvar fruitDataSet = [\r\n {properties: { title: 'Apple: No Selection', selectionStyle: Ti.UI.iOS.ListViewCellSelectionStyle.NONE}},\r\n {properties: { title: 'BlueBerry: Blue Selection', selectionStyle: Ti.UI.iOS.ListViewCellSelectionStyle.BLUE}},\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});\r\nvar vegDataSet = [\r\n {properties: { title: 'Carrots: No Selection',selectionStyle: Ti.UI.iOS.ListViewCellSelectionStyle.NONE}},\r\n {properties: { title: 'Eggplant: Blue Selection', selectionStyle: Ti.UI.iOS.ListViewCellSelectionStyle.BLUE}},\r\n];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n\r\nlistView.sections = sections;\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-01T18:29:12.000+0000", "updated": "2016-08-01T18:29:12.000+0000" }, { "id": "392246", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~hansknoechel] I have been unable to reproduce this compilation error with the given test case. On some occasions I have encountered the error, but there have been no consistent causes identified, and cleaning the project or rebuilding always fixes the issue.\r\n\r\nGiven that [~jerodfritz] has confirmed that the PR has fixed the issue, I will be closing this ticket. \r\n\r\nTested On:\r\n\r\niPhone 6S (9.3.3) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.4.0.v20160801022303\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-37\r\nXcode 7.3\r\nNode v4.4.7\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-02T23:03:16.000+0000", "updated": "2016-08-02T23:03:16.000+0000" }, { "id": "392248", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "*Note: * If anyone is still experiencing this issue consistently with SDK version 5.4.0.v20160731195210 or later, please comment on this ticket and we will reopen and investigate further.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-02T23:17:56.000+0000", "updated": "2016-08-02T23:17:56.000+0000" }, { "id": "392980", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] - http://stackoverflow.com/questions/38889343/sdk-5-4-0-ga-fails-to-build-ios-application\r\n\r\n{code:java}\r\n1 error generated.\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : CompileC build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.o Classes/TiUITextWidget.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-12T03:51:08.000+0000", "updated": "2016-08-12T03:51:08.000+0000" }, { "id": "393114", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] Looking at the trace log from the stack overflow:\r\n{code}\r\n[TRACE] : In file included from /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiUITextWidget.m:14:\r\n[TRACE] : /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiApp.h:69:5: error: unknown type name 'UIApplicationShortcutItem'; did you mean 'UIApplicationState'?\r\n[TRACE] : UIApplicationShortcutItem *launchedShortcutItem;\r\n{code}\r\nIt looks like the user is using Xcode 6.4 and this is causing an error because UIApplicationShortcutItem is iOS 9.0 and above only.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T04:21:48.000+0000", "updated": "2016-08-15T04:21:48.000+0000" }, { "id": "393115", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "But I won't think about fixing it if that's the case. Since 5.5.0 will support Xcode 8 and Xcode 7.3.1 only.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T04:23:19.000+0000", "updated": "2016-08-15T04:23:19.000+0000" }, { "id": "393119", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] if this is the problem, we could probably merge a back port PR to 5_4_X (i just bumped to 5.4.1) and if this user seriously needs the fix he can get it from builds.appcelerator.com. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T05:10:11.000+0000", "updated": "2016-08-15T05:10:11.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }