The error problem that will appear after importing the xmpp framework: @import libxmlSimu not fund
Solution 1:
1. Make sure you import the module.modulemap file into your project.
2. In the project, find Enable Modules(C and Objective-C) in Build Settings and set it to yes
3. Copy the absolute path of the module.modulemap file.
4. In the project, find Header Search Paths in Build Settings and add an item: the absolute path of the module.modulemap file: for example /Users/bss/Desktop/XMPPFramework-master/Xcode/iPhoneXMPP/module, and set it to recusive
Solution 2:
#if !(TARGET_IPHONE_SIMULATOR)
@import libxml;
#else
@import libxmlSimu;
#endif
changed to
#if !(TARGET_IPHONE_SIMULATOR)
//@import libxml;
#import "libxml/tree.h"
#else
//@import libxmlSimu;
#import "libxml/tree.h"
#endif
Then:
In the project, find Enable Modules (C and Objective- C) in Build Settings and set it to yes