processone / xmpp-messenger-ios

iOS XMPP Messenger Framework
MIT License
219 stars 93 forks source link

Compile errors after Pod install #50

Open baoluo opened 8 years ago

baoluo commented 8 years ago

You may have compiler errors after installing the pod, first try to deep clean Xcode (command+alt+shift+k)

If the errors are "Include of non-modular header inside module XMPPFramework", you may edit those files :

In XMPPStream.h, change #import "CocoaAsyncSocket/GCDAsyncSocket.h" to @import CocoaAsyncSocket

In XMMPLogging.h, change #import "CocoaLumberjack/DDLog.h" to @import CocoaLumberjack

In JSQSystemSoundPlayer+JSQMessages.h, change to @import JSQSystemSoundPlayer;

A pull request will be made to the XMPPFramework to include thoses changes.

capkin90 commented 8 years ago

Hi baoluo, thank you for the update. But after the editing i still get some errors: bildschirmfoto 2016-05-24 um 18 19 40

The following pods exists in my project: bildschirmfoto 2016-05-24 um 18 19 48

have you an idea how i can fix this issues?

baoluo commented 8 years ago

@capkin90 Sorry to tell you that, but the answer to this question is written in my post just before yours:

In XMPPStream.h, change #import "CocoaAsyncSocket/GCDAsyncSocket.h" to @import CocoaAsyncSocket

aadilkeshwani90 commented 8 years ago

I am still getting error, i have changed #import "CocoaAsyncSocket/GCDAsyncSocket.h" to @import CocoaAsyncSocket

screen shot 2016-07-15 at 10 37 22 am

baoluo commented 8 years ago

Hello @aadilkeshwani90 it should work properly then, can you try to add the pod in a new / fresh install to debug this ?

aadilkeshwani90 commented 8 years ago

@baoluo I managed to resolve it by adding cocoaasync.framework in xmpp-messenger-ios.

Attached is the screenshot for the same.

screen shot 2016-07-19 at 10 22 08 am

baoluo commented 8 years ago

@aadilkeshwani90 Thank you for the update, it's nice to know that you made it work !

democedes commented 8 years ago

why it appear error message 'No such module "xmpp_messenger_ios"' when I import on AppDelegate.swift

yyu1 commented 8 years ago

I am also getting the "Module 'CocoaAsyncSocket' not found" error after changing the line in XMPPStream.h

I have also tried adding CocoaAsyncSocket.framework to the Linked Frameworks and Libraries for xmpp-messenger-ios as mentioned by @aadilkeshwani90 but it still does not work.

baoluo commented 8 years ago

@yyu1 @democedes Check that the property 'use modular headers' is set to YES in your project's build settings