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
CocoaPod import with swift doesn't work #113
Comments
I too had a similar issue and spent a fair amount of time trying to solve. I tried all sort of things it's not even funny. The issue is <libxml/tree.h> and <libxml/xmlstring.h> which are part of the libxml library, i tried finding the path to libxml2.dynlib and linking that and that didn't do it, i tried embedded binaries, i tried adding something to my module map. i might have to get desperate and rewrite the same bits of the tree.h file and xmlstring.h file that evernote uses, but it depends how many it requires. |
This was my third attempt to update my old Evernote SDK to the new cloud api SDK. It's the task of People of Evernote in my opinion. Swift is established and they should improve their SDK to work seamlessly with Swift and Cocoapods. |
+1 |
As of 2.0.5, there's been an issue with Cocoa pods integration in general. Did anyone try this with Objective-C to discern whether that's the core issue? |
Can you try out 2.0.6 and close this issue if it fixes things for you? |
Did you update 2.0.6 to CocoaPods? |
Unfortunately, I don't have access. We'll be filing a claim to get access tomorrow. For now, I'd appreciate if someone verified that what I've changed is working for them by pointing cocoa pods directly at this github project |
I installed 2.0.6, but |
This should fix issues with the "include non-modular header" error when compiling for Swift. (Evernote#113)
@Limon-catch I was able to make this work with f367ada. In your project, I removed the import from the bridging header and added "import evernote_cloud_sdk_ios" in ViewController.swift. Please let me know if this works so I can tag it as 2.0.7. |
Sorry, @jimdusseau , I come late. It works. Thanks :) |
I want to use the new evernote-cloud-sdk-ios as a framework with CocoaPods but it doesn't work.
import <libxml/xmlstring.h>
import <libxml/tree.h>
2 The mysteries error of not building "Objective-C" module "evernote_cloud_sdk_ios"
And yes, I have used CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES=YES
Please fix or give me hints for workarounds.
The text was updated successfully, but these errors were encountered: