libxmlSimu not found when upgrading XMPPFramework to 3.6.6 via cocoapods
I guys I found this issue when upgrading to the latest version of XMPPFramework. ClassName: DDXMLNode.h Module: KissXML
#if !(TARGET_IPHONE_SIMULATOR)
@import libxml;
#else
@import libxmlSimu;
#endif
Compiler mark line 4 with an error explaining: Module 'libxmlSimu' not found.
How can I solve this issue? Thanks a lot, Dario
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"'
}
thanks @max-potapov ! do you have some podspec with all the dependecies fixed? thanks a lot
I've this one (based on ProcessOne spec): https://github.com/unisontech/PodSpecs/blob/master/uXMPPFramework/3.6.6/uXMPPFramework.podspec but it's under WIP
thanks a million! @max-potapov I'll try ;)
We will now be maintaining an official XMPPFramework podspec thanks to the great work by the processOne team in PR #595.
I wonder how to forward modules in my framework pod, I am a learner , could you help me please?
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"' }
I am getting the same error libxml not found libxmlsimu not found
i tried adding this also "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
but still i am getting the error. Please help.
Working on it...
On Thu, Sep 24, 2015 at 4:57 AM, Shrutimittal91 [email protected] wrote:
I am getting the same error libxml not found libxmlsimu not found
i tried adding this also
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
but still i am getting the error. Please help.
— Reply to this email directly or view it on GitHub https://github.com/robbiehanson/XMPPFramework/issues/591#issuecomment-142908215 .
Thanks for the immediate response. Please let me know how much time it will take. I need to integrate it in my project.
On Thu, Sep 24, 2015 at 10:36 PM, Chris Ballinger [email protected] wrote:
Working on it...
On Thu, Sep 24, 2015 at 4:57 AM, Shrutimittal91 [email protected] wrote:
I am getting the same error libxml not found libxmlsimu not found
i tried adding this also
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
but still i am getting the error. Please help.
— Reply to this email directly or view it on GitHub < https://github.com/robbiehanson/XMPPFramework/issues/591#issuecomment-142908215
.
— Reply to this email directly or view it on GitHub https://github.com/robbiehanson/XMPPFramework/issues/591#issuecomment-142990744 .
Thanks & Regards Shruti Mittal
Verify if your XCode application is in /Applications folder but not else where. If it's not the case, change the path define the libxmlSimu to the right path. Normaly, the definition of libxmlSimu is in the file: "module.modulemap" in KissXML project of your pod.
It's just a temporal solution.
@haduyenhoa My xcode is in applications only. And the path defined for libxmlsimu in "module.modulemap" is "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
Verify if you have tree.h in that path. Otherwise, replace that path by "/usr/include/libxml2/libxml/tree.h" (be sure that you have tree.h at the path that you give to module.modulemap)
I am still getting this error.. Although I have not used PODS... If followed this post http://stackoverflow.com/questions/9091767/up-to-date-instructions-on-how-to-install-xmppframework-manually/30543948#30543948 for installation steps
tree.h file is in the libxml folder. I have tried with the exact path to tree.h still getting libxmlSimu not found
Just downloaded the entire framework folder, can't run iPhone sample app (com.deusty.oss.xmppframework.iPhoneXMPP) because of subj. issue.
Fixed it by replacing @import libxml; with #import "libxml/tree.h":
#if !(TARGET_IPHONE_SIMULATOR)
//@import libxml;
#import "libxml/tree.h"
#else
//@import libxmlSimu;
#import "libxml/tree.h"
#endif
@userException maybe it helps you
but then... same Module not found error with dnssd/dnssdSim
#if !(TARGET_IPHONE_SIMULATOR)
@import dnssd;
#else
@import dnssdSimu;
#endif
replaced with #import <dns_sd.h> hope it will work

@max-potapov thanks for your answer to fix this issue
#if !(TARGET_IPHONE_SIMULATOR)
@import dnssd;
#else
@import dnssdSimu;
#endif
but i attemp to try solve this problem use this way ,it is not work - - !
could you have some detail steps to fixs this problem~~~ please !
thanks for your answer!
by the way i m haven't use pods ~
module map definitions should work with this option enabled:

i will try it soon
@max-potapov it's worked ! thanks max-potapov
Bother you again ,😢 。。。。 if( you have time) just have a look 。 it‘s enough for me
