-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example project does not compile on Xcode 7.1 #15
Comments
I just updated to Xcode 7.1, and I can confirm this behaviour |
Also had a few problems with the lib xml module mapping as well. |
I will compile the XMPPFramework against Xcode 7.1 to fix those errors |
Ok, two things about this error, the first one, I can pod spec lint without error. Secondly, if I use the XMPPFramework pod in a standalone app, it will compile. It's when it's embedded in xmpp-messenger-ios. I'll continue the investigation |
@baoluo, XMPPFramework 3.6.6 pod compiles without errors on XCode 7.1. |
Ok I found the fix, I'll need to fix the XMPPFramework first, so I may include other changes before releasing a new pod for xmpp-messenger-ios |
I fixed the error in JSQMessageViewController jessesquires/JSQMessagesViewController#1284 I will now do the same for the XMPPFramework |
In the meantime, you can just replace the non-modular import with the @import syntax |
I fixed the errors in the XMPPFramework, you can follow the pull request here robbiehanson/XMPPFramework#614 |
@baoluo It seems that replacing non-modular import with the @import syntax does not solves the problem.
It seems that CocoaLumberJack can not be compiled as a module also. |
Failed to build - The link above reports this problem below but the Process One Project Builds
|
@baoluo I downloaded a fresh copy of this repository, replaced import statements and deep cleaned XCode before compiling but still getting this error: |
@abbasmousavi , XMPPAnonymousAuthentication need to be changed as well ? |
@baoluo I don't think so, In another try I have changed .podspec file (this time without replacing import statements in xmpp and JSQMessagesViewController) and now the import problem is gone but I get a new error: ".../Pods/XMPPFramework/Vendor/KissXML/DDXMLNode.h:4:9: Module 'libxml' not found May be there is no need to change import statement in other projects and fixing libxml problem will fix the issue? |
@abbasmousavi Yes because you are not importing the module map file for libxml now. |
Yes, you are right. |
@baoluo any new progress? |
I'm still waiting for JSQMessage and XMPPFramework to accept the pull request, but in the meantime you can manually fix the project by applying the modification |
@baoluo JSQMessage pull request is closed and as I said before, after applying the modifications I get another error that says Module "CocoaLumberJack" not found (in file XMPPLogging.h); Could you please modify the example project in this repo so that it compiles with XCode 7.1? |
The idea around open source is to allow the community to take part in the contribution of these projects. Fell free to make the change and submit your very own pull request to the respective repos. Enjoy.
|
@abbasmousavi changes have been committed to the example project, but like @adozenlines said, the best options would have that you made the changes I showed you, or more importantly, support my pull requests to the other third party libs. Because right now I fixed the example, but not the source. |
@baoluo Thanks for changes (I didn't send PR because your proposed modifications didn't work on my project), finally I can compile my project, getting diff with your example project, I found that there was a strange permission issue on XMPPFramework folder in my project pods that caused "Module CocoaLumberJack not found" error. changing the permissions solved the problem. Thanks again and I will support your PR on XMPP and JSQMessage certainly. |
I guess this can be closed. |
Thanks guys. I got stuck on the permission issue for a while and to fix it I deleted the |
I got the same error on Xcode 7.1 and also it could not add xmpp_messenger_ios in app delegate (it cause unknown module error). Do you have complete project fix files? |
Also this error appears when direct example uses: |
Looks like the pods and sample are out of sync and the OneLastActivity is not part of project may be a merger gone bad. Sent from my iPhone
|
@novinfard check have you in Pods the file "OneLastActivity.swift". If you do not have this file, add this manually and all will be fine. |
@baoluo please, close this issue, because it works even in Xcode 7.2 |
Ok @orkhanalizade, closing this now |
@adozenlines how did you resolve this issue |
@abbasmousavi how did you modify the permission to resolve cocoalumberjack not found issue |
@abbasmousavi , you have this error because the compiler doesn't find the custom import. Add it to your folder and the path un you Xcode's build settings |
@baoluo The example project (and the pod) does not compile on Xcode 7.1 (Compiles on XCode 7)
The text was updated successfully, but these errors were encountered: