{ "id": "148762", "key": "TIMOB-19017", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-19T01:56:34.000+0000", "created": "2015-06-14T21:05:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-07T00:39: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": "Trying to build a module based on a simple ViewProxy as in the guide is now failing to build since the CI build SDK 4.1.x version. 4.0.x is fine. \r\n\r\nTo reproduce. \r\n1. Make sure you have SDK 4.1.x selected \r\n2. Follow the instructions to build the example 'Square' module in the documentation here : http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Module_Quick_Start\r\n3. Open in XCode. Clean and Build. (or run build.py) \r\n\r\nThis is the error I'm getting:\r\n\r\n{code}\r\nIn file included from /Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiModule.h:7:\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:92:44: error: unknown type name 'UIView'\r\nvoid DoProxyDelegateChangedValuesWithProxy(UIView * target, NSString * key, id oldValue, id newValue, TiProxy * proxy);\r\n ^\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:92:50: error: expected ')'\r\nvoid DoProxyDelegateChangedValuesWithProxy(UIView * target, NSString * key, id oldValue, id newValue, TiProxy * proxy);\r\n ^\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:92:43: note: to match this '('\r\nvoid DoProxyDelegateChangedValuesWithProxy(UIView * target, NSString * key, id oldValue, id newValue, TiProxy * proxy);\r\n ^\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:93:49: error: unknown type name 'UIView'\r\nvoid DoProxyDelegateReadValuesWithKeysFromProxy(UIView * target, id keys, TiProxy * proxy);\r\n ^\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:93:55: error: expected ')'\r\nvoid DoProxyDelegateReadValuesWithKeysFromProxy(UIView * target, id keys, TiProxy * proxy);\r\n ^\r\n/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.v20150601234429/iphone/include/TiProxy.h:93:48: note: to match this '('\r\nvoid DoProxyDelegateReadValuesWithKeysFromProxy(UIView * target, id keys, TiProxy * proxy);\r\n ^\r\n4 errors generated.\r\n\r\n** BUILD FAILED **\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: ViewProxy modules error on building with \"error: expected ')'\"", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": null, "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "355083", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "The lines in TiProxy.h which the error is referring to have an interesting comment beneath them : \r\n\r\n{code}\r\n\r\nvoid DoProxyDelegateChangedValuesWithProxy(UIView * target, NSString * key, id oldValue, id newValue, TiProxy * proxy);\r\nvoid DoProxyDelegateReadValuesWithKeysFromProxy(UIView * target, id keys, TiProxy * proxy);\r\n//Why are these here? Because they can be commonly used between TiUIView and TiUITableViewCell.\r\n\r\n{code}\r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-06-14T21:21:04.000+0000", "updated": "2015-06-14T21:21:20.000+0000" }, { "id": "355084", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Comparing TiProxy.h from 4.0.x with 4.1.x I see that the line :\r\n{code}#import \"TiBase.h\"{code}\r\n\r\n.. is missing. \r\n\r\nAdding this has solved the module building issue. But I have no idea what else might have broken by doing so. \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-06-14T21:32:54.000+0000", "updated": "2015-06-14T21:32:54.000+0000" }, { "id": "355179", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Try adding {{#import }} to the module.pch - I think the latest version of Xcode, for whatever reason, requires that.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-16T05:00:12.000+0000", "updated": "2015-06-16T05:00:12.000+0000" }, { "id": "355196", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "@Pedro That seemed to do the trick! ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-06-16T09:47:05.000+0000", "updated": "2015-06-16T09:47:05.000+0000" }, { "id": "355285", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kosso] cool! We'll need to update the module template", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-16T23:12:36.000+0000", "updated": "2015-06-16T23:12:36.000+0000" }, { "id": "355474", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/6924", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-18T16:11:44.000+0000", "updated": "2015-06-18T16:11:44.000+0000" }, { "id": "355514", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Merged!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-19T01:56:19.000+0000", "updated": "2015-06-19T01:56:19.000+0000" }, { "id": "357076", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified there were no ViewProxy module errors when building with latest SDK.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 4.1.0.201507061507\r\nAppc CLI NPM: 4.1.0-1\r\nAppc CLI Core: 4.1.0-5\r\nArrow: 1.1.0-11\r\nSDK: 4.1.0.v20150706111546\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.4)\r\nXcode: 6.4\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-07T00:39:05.000+0000", "updated": "2015-07-07T00:39:05.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }