在导入xmpp框架后会出现的错误问题:@import libxmlSimu not fund

在导入xmpp框架后会出现的错误问题:@import libxmlSimu not fund


解决方法1:

1.确保你把 module.modulemap 文件导入你的工程。

2. 在工程中的, Build Settings  中找到 Enable Modules(C and Objective- C)    设置为yes

3. 复制module.modulemap文件的绝对路径。

4. 在工程中的, Build Settings  中找到Header Search Paths 添加一项:module.modulemap文件的绝对路径:例如/Users/bss/Desktop/XMPPFramework-master/Xcode/iPhoneXMPP/module,并且设置为recusive


解决方法2:

#if !(TARGET_IPHONE_SIMULATOR)
@import libxml;
#else
@import libxmlSimu;
#endif

改为 

#if !(TARGET_IPHONE_SIMULATOR)
//@import libxml;
#import "libxml/tree.h"
#else
//@import libxmlSimu;
#import "libxml/tree.h"
#endif
 然后:

在工程中的, Build Settings  中找到 Enable Modules(C and Objective- C)    设置为yes


猜你喜欢

转载自blog.csdn.net/sirodeng/article/details/51416847