"pod 'CocoaHTTPServer' \nCall to undeclared function 'LOG_OBJC_MAYBE'; ISO C99 and later do not support implicit function declarations\n"\n这个错误是因为在使用CocoaHTTPServer时没有正确引入相关的头文件。在使用CocoaHTTPServer时,需要添加以下头文件:\n\nobjective-c\n#import <CocoaHTTPServer/HTTPServer.h>\n\n\n另外,还需要在Build Phases的Compile Sources中添加相关的.m文件。\n\n如果仍然报错,可能是因为项目中没有正确配置CocoaHTTPServer的搜索路径。可以尝试在Build Settings的Header Search Paths中添加CocoaHTTPServer的路径。

CocoaHTTPServer 报错:Call to undeclared function 'LOG_OBJC_MAYBE' 解决方法

原文地址: https://www.cveoy.top/t/topic/p9Bm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录