{"action":"created","issue":{"url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/151","labels_url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/151/comments","events_url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/151/events","html_url":"https://github.com/swisspol/GCDWebServer/issues/151","id":60423867,"number":151,"title":"Build errors when using CocoaLumberjack v2.0.0","user":{"login":"master-nevi","id":987706,"avatar_url":"https://avatars.githubusercontent.com/u/987706?v=3","gravatar_id":"","url":"https://api.github.com/users/master-nevi","html_url":"https://github.com/master-nevi","followers_url":"https://api.github.com/users/master-nevi/followers","following_url":"https://api.github.com/users/master-nevi/following{/other_user}","gists_url":"https://api.github.com/users/master-nevi/gists{/gist_id}","starred_url":"https://api.github.com/users/master-nevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/master-nevi/subscriptions","organizations_url":"https://api.github.com/users/master-nevi/orgs","repos_url":"https://api.github.com/users/master-nevi/repos","events_url":"https://api.github.com/users/master-nevi/events{/privacy}","received_events_url":"https://api.github.com/users/master-nevi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swisspol/GCDWebServer/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-09T22:52:14Z","updated_at":"2015-03-16T19:48:41Z","closed_at":null,"body":"Currently I get the following build error:\r\n```\r\nGCDWebServer.m:77:28: Use of undeclared identifier 'LOG_LEVEL_DEBUG'\r\n```\r\nThe build errors are reproducible by creating a brand new Swift project with a Podfile that installs the following pods using CocoaPods v0.36.0.rc.1:\r\n```ruby\r\npod 'GCDWebServer'\r\npod 'CocoaLumberjack', '~> 2.0.0-rc2'\r\n```\r\n\r\nI saw that CocoaLumberjack had a [laundry list of items to migrate to v2.0.0](https://github.com/CocoaLumberjack/CocoaLumberjack#migrating-to-2x), one of which was to replace LOG_LEVEL_* macros with DDLogLevel enum values, so I applied this hoping for an easy fix:\r\n```objective-c\r\n#if DEBUG\r\nint GCDWebServerLogLevel = DDLogLevelDebug;\r\n#else\r\nint GCDWebServerLogLevel = DDLogLevelInfo;\r\n#endif\r\n```\r\nBut alas, I then get a different set of errors:\r\n```\r\nUndefined symbols for architecture x86_64:\r\n  \"_OBJC_CLASS_$_DDLog\", referenced from:\r\n      objc-class-ref in GCDWebServer.o\r\n      objc-class-ref in GCDWebServerConnection.o\r\n      objc-class-ref in GCDWebServerFileResponse.o\r\n      objc-class-ref in GCDWebServerFunctions.o\r\n      objc-class-ref in GCDWebServerMultiPartFormRequest.o\r\n      objc-class-ref in GCDWebServerRequest.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\nI usually open up Github issues with a workaround or a possible fix, but at this point I don't know enough about how GCDWebServer works to continue.\r\n"},"comment":{"url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/comments/81897956","html_url":"https://github.com/swisspol/GCDWebServer/issues/151#issuecomment-81897956","issue_url":"https://api.github.com/repos/swisspol/GCDWebServer/issues/151","id":81897956,"user":{"login":"swisspol","id":627915,"avatar_url":"https://avatars.githubusercontent.com/u/627915?v=3","gravatar_id":"","url":"https://api.github.com/users/swisspol","html_url":"https://github.com/swisspol","followers_url":"https://api.github.com/users/swisspol/followers","following_url":"https://api.github.com/users/swisspol/following{/other_user}","gists_url":"https://api.github.com/users/swisspol/gists{/gist_id}","starred_url":"https://api.github.com/users/swisspol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swisspol/subscriptions","organizations_url":"https://api.github.com/users/swisspol/orgs","repos_url":"https://api.github.com/users/swisspol/repos","events_url":"https://api.github.com/users/swisspol/events{/privacy}","received_events_url":"https://api.github.com/users/swisspol/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T19:48:41Z","updated_at":"2015-03-16T19:48:41Z","body":"Roll back to a pre-2.0 version of CocoaLumberJack or patch GCDWebServer `Private.h` file to not forward logging to CocoaLumberJack or use completely custom logging which could even be a no-op:\r\nhttps://github.com/swisspol/GCDWebServer/blob/master/GCDWebServer/Core/GCDWebServer.h#L481"}}