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

Use framework imports where available [Fix use_frameworks!] #307

Merged
merged 2 commits into from
Nov 20, 2015

Conversation

timbodeit
Copy link
Collaborator

When using the new use_frameworks! option in Cocoapods, by default errors
about non-module imports are thrown, whenever a header is imported with "" that
does not belong to the same module (same target)

To circumvent this, import dependencies using </> when possible

This is one of the two changes, that fixed #303 for me. I have been using this off my own fork for about 5 months now.
The other part is sitting in the NUIParse#2 from roughly around the same time, that I originally made this commit.

The second part might be optional for Objective-C only projects, but is definitely needed for Swift projects, that use the native import syntax (and not a bridging header).

If @tombenner or anybody else with push access to NUIParse is looking at this, please also have a look at NUIParse#2.

@timbodeit
Copy link
Collaborator Author

Checked the CI failure. Unrelated to my changes, same error occurs on current master.

@Stunner
Copy link
Collaborator

Stunner commented Nov 6, 2015

This gets the green light from me.

@timbodeit
Copy link
Collaborator Author

Cool :)
I'd like to make a new release of NUIParse first though. Once I have tested again, that everything works, I'll also update the Readme like you requested.

@Stunner
Copy link
Collaborator

Stunner commented Nov 6, 2015

Awesome! 👍

@timbodeit timbodeit force-pushed the improve_framework_support branch from 0587377 to 1193c0b Compare November 6, 2015 11:07
@PabloLerma
Copy link

Good work @timbodeit , looking forward to seeing this PR merged 😄

@timbodeit
Copy link
Collaborator Author

@Stunner please have a quick look over the Readme changes. If you don't have any objections, this should be good to merge now.

Pushed a new NUIParse release earlier today, so once this is merged, using NUI as a framework in Swift should work fine.

When using the new `use_frameworks!` option in Cocoapods, by default errors
about non-module imports are thrown, whenever a header is importet with "" that
does not belong to the same module (same target)

To circumvent this, import dependencies using </> when possible
- Improved documentation on usage with swift
- Replace reference to CoreParse with NUIParse (fix tombenner#278)
@timbodeit timbodeit force-pushed the improve_framework_support branch from a759fab to edf0aee Compare November 19, 2015 21:04
@timbodeit timbodeit added this to the 0.6.0 milestone Nov 19, 2015
@timbodeit timbodeit mentioned this pull request Nov 19, 2015
Stunner added a commit that referenced this pull request Nov 20, 2015
Use framework imports where available [Fix `use_frameworks!`]
@Stunner Stunner merged commit cbf8503 into tombenner:master Nov 20, 2015
@timbodeit timbodeit deleted the improve_framework_support branch November 20, 2015 11:26
@timbodeit timbodeit mentioned this pull request Dec 2, 2015
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

Successfully merging this pull request may close these issues.

cocoapods use_frameworks! with Swift doesn't work
3 participants