Skip to content
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

Closed
AndreClaassen1 opened this issue Oct 7, 2015 · 10 comments
Closed

CocoaPod import with swift doesn't work #113

AndreClaassen1 opened this issue Oct 7, 2015 · 10 comments

Comments

@AndreClaassen1
Copy link

I want to use the new evernote-cloud-sdk-ios as a framework with CocoaPods but it doesn't work.

  1. There are non-modular header file usages in ENXMLUtils.h and ENXMLSaxParser.h

    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

bildschirmfoto 2015-10-07 um 06 25 59

Please fix or give me hints for workarounds.

@ghost
Copy link

ghost commented Oct 7, 2015

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.

@AndreClaassen1
Copy link
Author

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.

@Limon-O-O
Copy link

+1

@jimdusseau
Copy link
Contributor

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?

@jimdusseau
Copy link
Contributor

Can you try out 2.0.6 and close this issue if it fixes things for you?

@Limon-O-O
Copy link

Did you update 2.0.6 to CocoaPods?

@jimdusseau
Copy link
Contributor

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

@Limon-O-O
Copy link

I installed 2.0.6, but
I created a repository. You can test it.

jimdusseau pushed a commit to jimdusseau/evernote-cloud-sdk-ios that referenced this issue Nov 30, 2015
This should fix issues with the "include non-modular header" error when
compiling for Swift. (Evernote#113)
@jimdusseau
Copy link
Contributor

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

@Limon-O-O
Copy link

Sorry, @jimdusseau , I come late. It works. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants