nui icon indicating copy to clipboard operation
nui copied to clipboard

Import Errors in Swift

Open AnthonyMDev opened this issue 9 years ago • 4 comments

I'm getting an error when importing this library in Swift `'NUIParse.h' file not found.

This is fixed by changing all import statements from #import "NUIParse.h" to #import <NUIParse/NUIParse.h>.

Does this change break anything for Objective-C users?

AnthonyMDev avatar Jun 28 '16 20:06 AnthonyMDev

No, it shouldn't cause any problem for Objective-C users. If you could submit a pull request with these changes I'd be happy to merge it in.

Stunner avatar Jun 28 '16 22:06 Stunner

Handling that now 👍

AnthonyMDev avatar Jun 28 '16 23:06 AnthonyMDev

It looks like this is actually fixed on master using:

#if __has_include(<NUIParse/NUIParse.h>)
#    import <NUIParse/NUIParse.h>
#else
#    import "NUIParse.h"
#endif

@Stunner I know you have a few more work packages for the release of 0.6.0but is there anyway we can get a new patch version for 0.5 pushed with this change? Because the current version is unusable with swift targets.

AnthonyMDev avatar Jun 28 '16 23:06 AnthonyMDev

@timbodeit Your thoughts on this? Considering we are both awfully inactive on this project these days, it may make sense to roll out a 0.5.x release to tie people over until we can get 0.6.0 ready and working.

Stunner avatar Jun 29 '16 01:06 Stunner