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

来源:互联网 发布:英文电影翻译软件 编辑:程序博客网 时间:2024/06/07 11:32

在导入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


0 0
原创粉丝点击