Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Created April 10, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save objectiveSee/10403016 to your computer and use it in GitHub Desktop.
Save objectiveSee/10403016 to your computer and use it in GitHub Desktop.
Creating Podspec for https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX. In my project, the "framework search paths" is set to ""$(PODS_ROOT)/../../PhilipsHueSDKOfficial"" but when I try to import a header from the Hue SDK I get a linker error (header not found)
Pod::Spec.new do |s|
s.name = 'PhilipsHueiOS'
s.version = '1.1.3'
s.license = 'Copyright (c) 2012- 2013, Philips Electronics N.V. All rights reserved.'
s.summary = 'The Software Development Kit for Philips Hue on iOS'
s.homepage = 'https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX'
s.requires_arc = true
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.8'
s.source = { :git => 'git@github.com:objectiveSee/PhilipsHueSDK-iOS-OSX.git', :tag => 'v1.1.3beta' }
s.ios.public_header_files = 'HueSDK_iOS.framework/Headers/*'
s.ios.vendored_frameworks = 'HueSDK_iOS.framework'
s.dependency 'CocoaLumberjack', '~> 1.8'
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '$(PODS_ROOT)/PhilipsHueiOS/Frameworks/HueSDK_iOS.framework/Headers' }
end
@williampower
Copy link

Thanks for doing this. Note that https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX says the iOS deployment target is 5.0 and the OSX target is 10.7. Are you able to review/ add to https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/pull/76/files ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment