XMPPFramework icon indicating copy to clipboard operation
XMPPFramework copied to clipboard

libxmlSimu not found when upgrading XMPPFramework to 3.6.6 via cocoapods

Open d4r1091 opened this issue 11 years ago • 59 comments

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

d4r1091 avatar Sep 09 '15 12:09 d4r1091

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

max-potapov avatar Sep 11 '15 08:09 max-potapov

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

d4r1091 avatar Sep 11 '15 08:09 d4r1091

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

max-potapov avatar Sep 11 '15 08:09 max-potapov

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

d4r1091 avatar Sep 11 '15 09:09 d4r1091

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

chrisballinger avatar Sep 15 '15 21:09 chrisballinger

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

7357011 avatar Sep 17 '15 01:09 7357011

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.

Shrutimittal91 avatar Sep 24 '15 11:09 Shrutimittal91

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 .

chrisballinger avatar Sep 24 '15 17:09 chrisballinger

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

Shrutimittal91 avatar Sep 25 '15 06:09 Shrutimittal91

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 avatar Oct 06 '15 20:10 haduyenhoa

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

Shrutimittal91 avatar Oct 07 '15 06:10 Shrutimittal91

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)

haduyenhoa avatar Oct 07 '15 08:10 haduyenhoa

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

userException avatar Oct 08 '15 09:10 userException

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

kas-kad avatar Oct 17 '15 13:10 kas-kad

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

kas-kad avatar Oct 17 '15 14:10 kas-kad

2015-10-21 11 31 22

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

dyundor avatar Oct 21 '15 03:10 dyundor

module map definitions should work with this option enabled: screen shot 2015-10-21 at 10 20 34

max-potapov avatar Oct 21 '15 07:10 max-potapov

i will try it soon

dyundor avatar Oct 21 '15 07:10 dyundor

@max-potapov it's worked ! thanks max-potapov

dyundor avatar Oct 21 '15 07:10 dyundor

Bother you again ,😢 。。。。 if( you have time) just have a look 。 it‘s enough for me 2015-10-21 3 33 11

dyundor avatar Oct 21 '15 07:10 dyundor