50ButtonsEach / fliclib-ios

The fliclib framework for iOS
35 stars 5 forks source link

any swift support? #1

Closed galileomd closed 9 years ago

galileomd commented 9 years ago

any help building into a swift project?

galileomd commented 9 years ago

On Xcode 7. I've tried creating a test project, added the framework, turned on the "Allow non-modular includes in framework module" to Yes, and started creating a bridging header.

importing with #import <fliclib/fliclib.h> gives me an error "Could not build module fliclib".

any ideas?

AntonMeier commented 9 years ago

Yes, we will look in to this. I believe I know what the issue is about. I will update you more on this tomorrow. Also, we will put up a tutorial for Swift also soon, but I am not sure if it will go up this week or next. Hope you can be patient!

galileomd commented 9 years ago

absolutely, thanks for the update and looking forward to testing out the hardware!

On Tuesday, September 29, 2015 at 12:12 PM, AntonMeier wrote:

Yes, we will look in to this. I believe I know what the issue is about. I will update you more on this tomorrow. Also, we will put up a tutorial for Swift also soon, but I am not sure if it will go up this week or next. Hope you can be patient!

— Reply to this email directly or view it on GitHub (https://github.com/50ButtonsEach/fliclib-ios/issues/1#issuecomment-144107532).

AntonMeier commented 9 years ago

Since I promised to answer today I'll do that. I made some updates to fix the issues that you saw and also verified that everything works as it should now. Thank you for giving me the heads up, we sort of forgot to test the latest commit with Swift. I will commit and push the updated version as soon as possible. I'll let you know!

AntonMeier commented 9 years ago

Hi again, I have now pushed a new release that works with swift. What you need to to in order to get it working is to create a bridging_header in your project that imports the fliclib/fliclib.h file. A tutorial for this will be available soon.

galileomd commented 9 years ago

awesome got it working without issues! i just followed this tutorial: http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/