Closed
Description
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
Activity
max-potapov commentedon Sep 11, 2015
XMPPFramework podspec is pointing to ProcessOne's fork.
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libxml2/libxml/tree.h"
d4r1091 commentedon Sep 11, 2015
thanks @max-potapov !
do you have some podspec with all the dependecies fixed? thanks a lot
max-potapov commentedon Sep 11, 2015
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
d4r1091 commentedon Sep 11, 2015
thanks a million! @max-potapov I'll try ;)
chrisballinger commentedon Sep 15, 2015
We will now be maintaining an official XMPPFramework podspec thanks to the great work by the processOne team in PR #595.
7357011 commentedon Sep 17, 2015
I wonder how to forward modules in my framework pod, I am a learner , could you help me please?
s.xcconfig = { (PODS_ROOT)/XMPPFramework/module',
'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'OTHER_LDFLAGS' => '"$(inherited)" "-lxml2" "-objc"'
}
Shrutimittal91 commentedon Sep 24, 2015
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.
chrisballinger commentedon Sep 24, 2015
Working on it...
On Thu, Sep 24, 2015 at 4:57 AM, Shrutimittal91 notifications@github.com
wrote:
Shrutimittal91 commentedon Sep 25, 2015
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 notifications@github.com
wrote:
Thanks & Regards
Shruti Mittal
haduyenhoa commentedon Oct 6, 2015
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.
Shrutimittal91 commentedon Oct 7, 2015
@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"
haduyenhoa commentedon Oct 7, 2015
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)
userException commentedon Oct 8, 2015
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
kas-kad commentedon Oct 17, 2015
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"
:@userException maybe it helps you
32 remaining items
kas-kad commentedon Dec 2, 2015
@raviasmile4u do you see what I see? As I wrote previously you have to change
@import libxml;
to#import "libxml/tree.h"
like this:Again, read carefully what I've suggested: (#591 (comment) + #591 (comment))
You have to do this in every place that cause the same error
raviasmile4u commentedon Dec 2, 2015
@purrrminator Thanks, that error gone but now another error..ld: 180 duplicate symbols for architecture x86_64
kas-kad commentedon Dec 2, 2015
@raviasmile4u this error may be caused by a few reasons, better google it and find the solution for your particular case
raviasmile4u commentedon Dec 2, 2015
@purrrminator ok i will search it and resolve it ...thanx
raviasmile4u commentedon Dec 3, 2015
ld: library not found for -lidn
clang: error: linker command failed with exit code 1 (use -v to see invocation)
getting this error....can anyone help me ???
devshubh commentedon Jan 10, 2016
There is a fix by using $(PROJECT_DIR)/modules/modulamap. this header would help to locate new ".modulemap " file which detects the "libsimu" file. locate the file properly and this issue would be resolved. Feel free to ask more.
jschmid commentedon Jan 11, 2016
@derbshireram you mentioned Carthage in your comment above: #591 (comment).
Have you succeeded in using Carthage to build XMPPFramework ? I do have trouble setting up a framework project for it. (Which seems to be related to this issue as well)
muzammal-PowerfulPal commentedon Jan 21, 2016
Solved My Problem:
http://stackoverflow.com/questions/33595234/xmppframework-could-not-build-module-libxml
rgkobashi commentedon Aug 11, 2016
I had this issue when I created my own pod with XMPPFramework as dependency (before that everything was working fine). What I did was add the following line on my podspec.json: (PODS_ROOT)/XMPPFramework/module $(SDKROOT)/usr/include/libresolv"
"HEADER_SEARCH_PATHS": "$(inherited)
Feel free to ask more
chrisballinger commentedon Aug 11, 2016
You realize that this is no longer needed right? Point your podspec at the master branch and it no longer needs the modules.
rgkobashi commentedon Aug 11, 2016
As far as I know I couldn't specify the source of one of my dependencies. I did a little research about that and I understood that is not possible. Currently I am downloading all my dependencies from https://github.com/CocoaPods/Specs.git
Probably I am missing something...
chrisballinger commentedon Aug 11, 2016
ashevin commentedon Aug 28, 2016
@rgkobashi
I am having the same trouble with including XMPPFramework as a dependency in a private Pod. Could you provide more details on where those lines should be added?
rgkobashi commentedon Aug 28, 2016
I didn't specified the source of the pod, that solution didn't work for me. What I did was, keep value for HEADER_SEARCH_PATHS on my private podspec.json and it works with no issues. Feel free to ask more...