{ "id": "155260", "key": "TIMOB-20495", "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": "17684", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-02T04:34:00.000+0000", "created": "2016-03-01T23:41:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.2.1" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T17:25:46.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": "Currently master is broken. This is a result of the following commit https://github.com/appcelerator/titanium_mobile/commit/9e209ca9ef3541ab23a0975627be2bc487464cbe#diff-2c9944d65132833cd5df17dcdd3ebc3a\r\n\r\nThe reason is my code doesn't use any attrributed strings, which means the below define statements are not applied\r\n\r\n#if defined (USE_TI_UIATTRIBUTEDSTRING) || defined(USE_TI_UIIOSATTRIBUTEDSTRING)\r\n\r\nIf these statements are not defined, you are unable to compile the code. You get the following error from Studio. If I remove the define statements I'm able to compile without any issues.\r\n\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC build/Intermediates/myProject.build/Release-iphoneos/myProject.build/Objects-normal/armv7/TiUILabel.o Classes/TiUILabel.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)", "attachment": [], "flagged": false, "summary": "iOS: Build error caused by missing define statements", "creator": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 585, "state": "closed", "name": "2016 Sprint 5 SDK", "startDate": "2016-02-27T01:30:43.377Z", "endDate": "2016-03-12T01:30:00.000Z", "completeDate": "2016-03-14T11:50:17.995Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378394", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "If this commit is really the key issue, it should be happening on 5_2_X as well, kindly check and back port a fix for that too.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-01T23:56:01.000+0000", "updated": "2016-03-01T23:56:01.000+0000" }, { "id": "378396", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ben.bahrenburg@gmail.com] I've ran code since implementing this feature that have labels with no attributed string. Are you by chance adding an event listener for 'link' on the label ? if not could you please send me the code in which you reproducing this issue ?", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T00:17:14.000+0000", "updated": "2016-03-02T00:17:14.000+0000" }, { "id": "378399", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nSteps to re-create:\r\n\r\n1) Create a new Alloy project\r\n2) Associate the Alloy project with a latest build from master. In my case I'm using mobilesdk-5.4.0.v20160301134309-osx.zip\r\n3) Create an Ad Hoc / Enterprise Build via Studio\r\n4) You will see the below error:\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC build/Intermediates/IssueTester.build/Release-iphoneos/IssueTester.build/Objects-normal/armv7/TiUILabel.o Classes/TiUILabel.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n\r\n5) If you open the xcode project you will see the issue with the define not being set correctly.\r\n\r\nOther comments:\r\n\r\nIt looks as though the TiUiLabel code that references the attributed project isn't in a comment out macro if the attributed define is not set. I believe this means that (a) the code should be wrapped in such a macro (b) the attributed proxy should be treated as a required dependency of TiUiLabel and the define conditional at the top of the TiUiLabel.m file should be removed, just keeping the reference.", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T01:14:22.000+0000", "updated": "2016-03-02T01:14:22.000+0000" }, { "id": "378400", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have a sample project if it will help, but as it errors with the default alloy template I thought easier to use that for testing purposes.", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T01:15:01.000+0000", "updated": "2016-03-02T01:15:01.000+0000" }, { "id": "378415", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to re-produced the issue once i tried packaging the project as oppose to running. Thank you for the very detailed and precise comment :) . \r\nPR(master): https://github.com/appcelerator/titanium_mobile/pull/7792\r\nPR(5_2_X): https://github.com/appcelerator/titanium_mobile/pull/7793", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T03:04:53.000+0000", "updated": "2016-03-02T03:12:13.000+0000" }, { "id": "378422", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs approved and merged!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-02T04:33:41.000+0000", "updated": "2016-03-02T04:33:41.000+0000" }, { "id": "379082", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-07T23:24:40.000+0000", "updated": "2016-03-07T23:29:14.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }