XMPPFramework无法找到module,请问如何解决。

新手上路,请多包涵
初次使用XMPPFramework,在github上下载的文件,根据作者的提示,完成相关依赖库的导入,在导入XMPPFramework,进行编译,则出现问题。
真机调试,则出现/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h:17:10: 'libxml/xmlversion.h' file not found
模拟器调试,则出现/Users/Root/Desktop/XMPPproject/XMPPproject/KissXML/DDXMLNode.h:5:9: Module 'libxmlSimu' not found
github上,作者说的解决方案,但是具体不知道该如何操作,请问有人遇见过这样的问题吗?
作者解决方案:
XMPPFramework podspec is pointing to ProcessOne's fork.

They have typo in libxmlSimu module definition. Correct path for header is:
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
You need to forward modules in your framework pod like:
s.xcconfig = {
'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2 $(SDKROOT)/usr/include/libresolv $(PODS_ROOT)/XMPPFramework/module',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'OTHER_LDFLAGS' => '"$(inherited)" "-lxml2" "-objc"'
}

阅读 4.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题