xcode - Get Phillips Hue framework SDK running with Swift -


i'm trying huesdk_osx framework running using object-c-bridging-header.

here framework:

https://github.com/philipshue/philipshuesdk-ios-osx/blob/master/documentation/apireference_osx.zip

bridging-header:

#import <huesdk_osx/huesdk.h> 

swift file:

import phhuesdk 

when typing "import huesdk_osx/" known code completion list appears classes framework, when selecting on of them xcode keeps on saying

build error: "no such module"

then, when ommitting import-directive , calling

let hue = phhuesdk() hue.startupsdk() 

then no build error occurs instead linker error

undefined symbols architecture x86_64: "_objc_class_$_phhuesdk", referenced from: __tfc8testapp211appdelegate12awakefromnibfs0_ft_t_ in appdelegate.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)

additionally adding huesdk_osx.framework project apparently did, have add lumberjack folder project (with copy option). find folder in zip file provided philips.

and need add systemconfiguration.framework project scdynamicstorecopycomputername function called huesdk framework. helped me.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -