{"action":"created","issue":{"url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/31","repository_url":"https://api.github.com/repos/aharren/LibComponentLogging-Core","labels_url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/31/comments","events_url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/31/events","html_url":"https://github.com/aharren/LibComponentLogging-Core/issues/31","id":188215989,"number":31,"title":"Xcode 8 build errors","user":{"login":"SpacyRicochet","id":904596,"avatar_url":"https://avatars.githubusercontent.com/u/904596?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacyRicochet","html_url":"https://github.com/SpacyRicochet","followers_url":"https://api.github.com/users/SpacyRicochet/followers","following_url":"https://api.github.com/users/SpacyRicochet/following{/other_user}","gists_url":"https://api.github.com/users/SpacyRicochet/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacyRicochet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacyRicochet/subscriptions","organizations_url":"https://api.github.com/users/SpacyRicochet/orgs","repos_url":"https://api.github.com/users/SpacyRicochet/repos","events_url":"https://api.github.com/users/SpacyRicochet/events{/privacy}","received_events_url":"https://api.github.com/users/SpacyRicochet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-09T10:43:56Z","updated_at":"2016-11-20T09:04:13Z","closed_at":null,"body":"The files (not installed with the Pod) currently give build errors in Xcode 8.\r\n\r\n<img width=\"255\" alt=\"screen shot 2016-11-09 at 11 41 05\" src=\"https://cloud.githubusercontent.com/assets/904596/20135723/8e1d4b54-a671-11e6-8d17-5e6b68352341.png\">\r\n\r\nIt looks like the main culprit is this bit of code. The complier seems to get confused about the `#define` cutting off the enum declaration.\r\n\r\n```\r\n// Log components, prefixed with 'lcl_c'.\r\nenum _lcl_enum_component_t {\r\n#   define  _lcl_component(_identifier, _header, _name)                        \\\r\n    lcl_c##_identifier,                                                        \\\r\n  __lcl_log_symbol_lcl_c##_identifier = lcl_c##_identifier,\r\n#   include \"lcl_config_components.h\"\r\n#   undef   _lcl_component\r\n\r\n   _lcl_component_t_count,\r\n   _lcl_component_t_first = 0,\r\n   _lcl_component_t_last  = _lcl_component_t_count-1\r\n};\r\n```\r\n\r\nAny idea on how to solve this?"},"comment":{"url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/comments/261766871","html_url":"https://github.com/aharren/LibComponentLogging-Core/issues/31#issuecomment-261766871","issue_url":"https://api.github.com/repos/aharren/LibComponentLogging-Core/issues/31","id":261766871,"user":{"login":"aharren","id":175273,"avatar_url":"https://avatars.githubusercontent.com/u/175273?v=3","gravatar_id":"","url":"https://api.github.com/users/aharren","html_url":"https://github.com/aharren","followers_url":"https://api.github.com/users/aharren/followers","following_url":"https://api.github.com/users/aharren/following{/other_user}","gists_url":"https://api.github.com/users/aharren/gists{/gist_id}","starred_url":"https://api.github.com/users/aharren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharren/subscriptions","organizations_url":"https://api.github.com/users/aharren/orgs","repos_url":"https://api.github.com/users/aharren/repos","events_url":"https://api.github.com/users/aharren/events{/privacy}","received_events_url":"https://api.github.com/users/aharren/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T09:04:13Z","updated_at":"2016-11-20T09:04:13Z","body":"You might want to try the trick that was done in RestKit, they changed the component definition into 1 macro: https://github.com/RestKit/RestKit/blob/development/Code/Support/lcl_config_components_RK.h#L52-L63"}}
{"actor":{"display_login":"aharren"}}