CocoaHTTPServer icon indicating copy to clipboard operation
CocoaHTTPServer copied to clipboard

Invalid in C99

Open deepp opened this issue 8 years ago • 4 comments

Hi ,I am getting this error.

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

deepp avatar Oct 18 '16 07:10 deepp

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

tiktiger852 avatar Nov 08 '16 01:11 tiktiger852

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

Rcrosp avatar Nov 09 '16 07:11 Rcrosp

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

cherpake avatar Jan 15 '17 09:01 cherpake

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

15458434 avatar Jul 19 '19 13:07 15458434