robbiehanson / CocoaHTTPServer

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

xcodebuild: CocoaHTTPServer/Extensions/WebDAV/DAVResponse.m:102:9: error: implicit declaration of function 'LOG_OBJC_MAYBE' is invalid in C99 #175

Open BernardChina opened 7 years ago

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

softwind0214 commented 7 years ago

This doesn't work either if I set use_frameworks! in Podfile.