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"'
}

xmppframework ios

dousky 9 years, 3 months ago

Your Answer