{ "id": "165432", "key": "TIMOB-24337", "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": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-25T11:49:58.000+0000", "created": "2017-01-23T17:28:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [ { "id": "54013", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "162826", "key": "TIMOB-23828", "fields": { "summary": "iOS10: Support new CSSearchQuery APIs", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-01-25T11:50:05.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": "h5. Issue Description \r\n\r\nUnable to build an app in device when Ti.App.iOS.createSearchQuery is used, I get this error below:\r\n{code}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC build/Intermediates/QueensMemoryProject.build/Debug-iphoneos/QueensMemoryProject.build/Objects-normal/armv7/TiAppiOSSearchQueryProxy.o Classes/TiAppiOSSearchQueryProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}\r\n\r\nH5. Steps to reproduce\r\n# Create a new Alloy projects\r\n# Add Titanium 6.0.0 SDK on tiapp.xml.\r\n# Execute this function below: \r\n{code}\r\n// The search-query\r\nvar searchQuery = Ti.App.iOS.createSearchQuery({\r\n\tqueryString : 'title == \"Titanium*\"',\r\n\tattributes : [\"title\", \"displayName\", \"keywords\", \"contentType\"]\r\n});\r\n{code}\r\n\r\nh5. Expected Result\r\nThe search query is created and ready to start. ", "attachment": [], "flagged": false, "summary": "iOS: Using Ti.App.iOS.createSearchQuery without other UserActivity API's causes build to fail on device", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xcode 8.2.1\r\niOS 10.2\r\nSDK 6.0.0GA, 6.0.1GA\r\nTitanium CLI\r\nCLI Version = 5.0.11\r\nnode-appc Version = 0.2.39", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "405090", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This happens because the Ti.App.iOS.SearchQuery depends on the Ti.App.iOS.SearchableItem / Ti.App.iOS.SearchableItemAttributeSet API. If those are not used, the API does not make any sense. Anyway, we can wrap those calls, but the workaround is to use the API as documented in the docs.\r\n\r\n*EDIT*: There is a case where the {{Ti.App.iOS.SearchableItem}} proxies can only be returned. So I'll push a fix that will ease that use-case as well. It will be included in the 6.0.2.GA.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-23T18:31:31.000+0000", "updated": "2017-01-23T18:36:26.000+0000" }, { "id": "405091", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/8777\r\nPR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8778\r\n\r\nUse the above and the test-case from TIMOB-23828. The reason we didn't catch this error was that we used the above described API's when testing the use-case. Although this one is very specific, it's fine to fix it.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-23T18:48:41.000+0000", "updated": "2017-01-23T18:52:20.000+0000" }, { "id": "405182", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you Hans ! ", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T16:49:23.000+0000", "updated": "2017-01-24T16:49:23.000+0000" }, { "id": "405214", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in builds:\r\n6.0.2.v20170124145857\r\n6.1.0.v20170124145731", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T23:15:03.000+0000", "updated": "2017-01-24T23:15:03.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }