robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.59k stars 1.31k forks source link

Invalid in C99 #171

Open deepp opened 7 years ago

deepp commented 7 years ago

Hi ,I am getting this error.

DAVConnection.m:123:9: Implicit declaration of function 'LOG_OBJC_MAYBE' is invalid in C99

tiktiger852 commented 7 years ago

Hi, I have same error. But when I replace HTTPLogging.h #import "DDLog.h" with #import <CocoaLumberjack/DDLog.h>

It works for me.

env: Swift3.0 Xcode8.1

Rcrosp commented 7 years ago

Hi ,I am getting this error. Implicit declaration of function 'LOG_OBJC_MAYBE' is invalid in C99

cherpake commented 7 years ago

added this to my Podfile

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'DD_LEGACY_MACROS=1'] end end end

or you can just define it on your project: DD_LEGACY_MACROS=1

15458434 commented 4 years ago

Set the dependency of 'CocoaLumberjack' to '~> 1.0'.