-
Notifications
You must be signed in to change notification settings - Fork 168
Compatible with swift 3? #113
Comments
I am using the SDK with Swift 3, so it's definitely compatible. Since the library is obj-C the Swift version should be irrelevant. I believe there were only a few instances where XCode updated my code for some optionality issues, but otherwise there was no difference for me in upgrading from Swift 2 to Swift 3 either in code or performance. Have you checked for linking issues? |
Thanks for giving me hope! Here's my problem. The first error it's giving me is that it can't find the <HueSDK_iOS/HueSDK.h> files, and the error is where I have the import statement in the Header file thats automatically created. and I added the -objC linker in the build settings. Can you think of what the problem is? |
This is what I have in my bridging file: #import <HueSDK_iOS/HueSDK.h> If it's still not finding it, there's probably a reference missing somewhere; could be lots of reasons why, but I'd compare with the QuickStart app and make sure that you add the SDK to the appropriate place(s) in your project settings. |
Oh hmm all I have in my bridging file is |
Huh in that last comment it didn't finish the import statement, |
"HueSDK_iOS/HueSDK.h'" is what it edited out of my last 2 comments |
Oh, interesting should be
|
Yeah thats what I have too, But that's all I have in my bridging file, and its saying it can't find the files. And I have already imported the iOSFramework folder, and the lumberjack files. So I don't know what to do but I'm looking :( |
http://www.developers.meethue.com/documentation/apple-sdk this is what i'm following, thanks so much for your help by the way |
Could you possibly help with this if you can? I fixed on thing, It turned out that I wasn't selecting "Copy items if needed" when i put the SDK files in Xcode, but now I'm getting a different set of issues. These are the errors I'm getting. If you knew anything about how to fix this, that would be amazing!! Thank you so much |
Does anyone know the best way to implement selecting which group to affect with lightstate changes in swift 4? |
Hello, I follow the instructions to integrate the SDK into my existing swift 3 project, and I'm getting an error in the objC header file that says swift can't find the <HueSDK_iOS/HueSDK.h> files, and thats after I imported the framework file and the Lumberjack files. Is this SDK compatible with Swift 3? Is that what this issue means? and if its not, please help me figure out what the problem is.
Thanks so much!
The text was updated successfully, but these errors were encountered: