ios - XMPPFramework无法找到module,请问如何解决。
黄舟
黄舟 2017-04-17 16:08:44
0
0
584
初次使用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"'
}

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!