Skip to content

libxmlSimu not found when upgrading XMPPFramework to 3.6.6 via cocoapods #591

Closed
@d4r1091

Description

@d4r1091

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

max-potapov commented on Sep 11, 2015

@max-potapov
Contributor

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"'
}
d4r1091

d4r1091 commented on Sep 11, 2015

@d4r1091
Author

thanks @max-potapov !
do you have some podspec with all the dependecies fixed? thanks a lot

max-potapov

max-potapov commented on Sep 11, 2015

@max-potapov
Contributor
d4r1091

d4r1091 commented on Sep 11, 2015

@d4r1091
Author

thanks a million! @max-potapov I'll try ;)

chrisballinger

chrisballinger commented on Sep 15, 2015

@chrisballinger
Collaborator

We will now be maintaining an official XMPPFramework podspec thanks to the great work by the processOne team in PR #595.

7357011

7357011 commented on Sep 17, 2015

@7357011

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 ( S D K R O O T ) / u s r / i n c l u d e / l i b r e s o l v (PODS_ROOT)/XMPPFramework/module',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'OTHER_LDFLAGS' => '"$(inherited)" "-lxml2" "-objc"'
}

Shrutimittal91

Shrutimittal91 commented on Sep 24, 2015

@Shrutimittal91

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

chrisballinger commented on Sep 24, 2015

@chrisballinger
Collaborator

Working on it...

On Thu, Sep 24, 2015 at 4:57 AM, Shrutimittal91 notifications@github.com
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
#591 (comment)
.

Shrutimittal91

Shrutimittal91 commented on Sep 25, 2015

@Shrutimittal91

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:

Working on it...

On Thu, Sep 24, 2015 at 4:57 AM, Shrutimittal91 notifications@github.com
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
<
#591 (comment)

.


Reply to this email directly or view it on GitHub
#591 (comment)
.

Thanks & Regards
Shruti Mittal

haduyenhoa

haduyenhoa commented on Oct 6, 2015

@haduyenhoa

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

Shrutimittal91 commented on Oct 7, 2015

@Shrutimittal91

@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

haduyenhoa commented on Oct 7, 2015

@haduyenhoa

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

userException commented on Oct 8, 2015

@userException

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

kas-kad commented on Oct 17, 2015

@kas-kad

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

32 remaining items

kas-kad

kas-kad commented on Dec 2, 2015

@kas-kad

@raviasmile4u do you see what I see? As I wrote previously you have to change @import libxml; to #import "libxml/tree.h" like this:

#if !(TARGET_IPHONE_SIMULATOR)
#import "libxml/tree.h"
#else
#import "libxml/tree.h"
#endif

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

raviasmile4u commented on Dec 2, 2015

@raviasmile4u

@purrrminator Thanks, that error gone but now another error..ld: 180 duplicate symbols for architecture x86_64

kas-kad

kas-kad commented on Dec 2, 2015

@kas-kad

@raviasmile4u this error may be caused by a few reasons, better google it and find the solution for your particular case

raviasmile4u

raviasmile4u commented on Dec 2, 2015

@raviasmile4u

@purrrminator ok i will search it and resolve it ...thanx

raviasmile4u

raviasmile4u commented on Dec 3, 2015

@raviasmile4u

screen shot 2015-12-03 at 2 23 08 pm
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

devshubh commented on Jan 10, 2016

@devshubh

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

jschmid commented on Jan 11, 2016

@jschmid

@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)

rgkobashi

rgkobashi commented on Aug 11, 2016

@rgkobashi

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:
"HEADER_SEARCH_PATHS": "$(inherited) ( S D K R O O T ) / u s r / i n c l u d e / l i b x m l 2 (PODS_ROOT)/XMPPFramework/module $(SDKROOT)/usr/include/libresolv"

Feel free to ask more

chrisballinger

chrisballinger commented on Aug 11, 2016

@chrisballinger
Collaborator

You realize that this is no longer needed right? Point your podspec at the master branch and it no longer needs the modules.

rgkobashi

rgkobashi commented on Aug 11, 2016

@rgkobashi

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

chrisballinger commented on Aug 11, 2016

@chrisballinger
Collaborator
pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
ashevin

ashevin commented on Aug 28, 2016

@ashevin

@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

rgkobashi commented on Aug 28, 2016

@rgkobashi

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...

On Aug 27, 2016, at 11:46 PM, ashevin notifications@github.com wrote:

@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?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chrisballinger@jschmid@max-potapov@ashevin@kas-kad

        Issue actions

          libxmlSimu not found when upgrading XMPPFramework to 3.6.6 via cocoapods · Issue #591 · robbiehanson/XMPPFramework