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

Cocoapods + Swift results does not build #33

Open
dpyro opened this issue May 23, 2016 · 3 comments
Open

Cocoapods + Swift results does not build #33

dpyro opened this issue May 23, 2016 · 3 comments

Comments

@dpyro
Copy link

dpyro commented May 23, 2016

Specifically, while the scheme for the Pods and any of the Pod descendants builds, trying to build my app’s (written in Swift) schema results in “Could not build Objective-C module ‘XlsxReaderWriter’”.

The more specific error is that “‘XMLDictionary.h’ could not be found” for BRARelationship.h.

I am not using a bridging header, as "XlsxReaderWriter-swift-bridge.h” does not seem to be discoverable from the Swift project.

I’m not a CocoaPod or Xcode veteran, so if there’s something else I need to be doing, please let me know!

@dpyro
Copy link
Author

dpyro commented May 27, 2016

This issue also occurs when using XlsxReaderWriter as a subproject to Swift 2.2/Xcode 7. I fixed it by first adding XMLDictionary.h to the public headers under Build Phases for the Pod project.

@dpyro
Copy link
Author

dpyro commented May 30, 2016

Created a pull-request to fix, see #36

@gunesmert
Copy link

I was trying to use the framework with Swift in an OS X application and having XMLDictionary.h not found error. This link helped me to fix it.

Basically, all you need to do is:

"""
In build settings, point the Header Search Paths (if you use #include <file.h>) or User Header Search Paths (if you use #include "file.h") to the directory of the static library project. If the static library project is inside your app directory, use this:

"$(PROJECT_DIR)" (recursive enabled)
"""

Hope, it helps someone.

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

2 participants