Open baoluo opened 8 years ago
Hi baoluo, thank you for the update. But after the editing i still get some errors:
The following pods exists in my project:
have you an idea how i can fix this issues?
@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
I am still getting error, i have changed #import "CocoaAsyncSocket/GCDAsyncSocket.h" to @import CocoaAsyncSocket
Hello @aadilkeshwani90 it should work properly then, can you try to add the pod in a new / fresh install to debug this ?
@baoluo I managed to resolve it by adding cocoaasync.framework in xmpp-messenger-ios.
Attached is the screenshot for the same.
@aadilkeshwani90 Thank you for the update, it's nice to know that you made it work !
why it appear error message 'No such module "xmpp_messenger_ios"' when I import on AppDelegate.swift
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.
@yyu1 @democedes Check that the property 'use modular headers' is set to YES in your project's build settings
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.