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

黄舟
黄舟

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

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号