weixin_39610422
weixin_39610422
2020-11-30 00:41

Implicit declaration of function 'LOG_OBJC_MAYBE' is invalid in C99

该提问来源于开源项目:ChangbaDevs/KTVHTTPCache

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39610422 weixin_39610422 5月前

    pod install编译报错

    点赞 评论 复制链接分享
  • weixin_39976153 weixin_39976153 5月前

    Same for me +1

    点赞 评论 复制链接分享
  • weixin_39894914 weixin_39894914 5月前

    added this to your 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

    点赞 评论 复制链接分享
  • weixin_39559469 weixin_39559469 5月前

    在podfile中 最后添加下面代码

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

    点赞 评论 复制链接分享
  • weixin_39610422 weixin_39610422 5月前

    thanks

    点赞 评论 复制链接分享
  • weixin_39842937 weixin_39842937 5月前

    Error 来自 CocoaLumberjack。CocoaHTTPServer 年久失修,1.0.3 中已去除对 CocoaHTTPServer/CocoaLumberjack 的依赖,改用自行维护的 KTVCocoaHTTPServer。

    点赞 评论 复制链接分享