Skip to content

Instantly share code, notes, and snippets.

@hartbit
Created November 9, 2012 16:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hartbit/4046633 to your computer and use it in GitHub Desktop.
Save hartbit/4046633 to your computer and use it in GitHub Desktop.
cocos2d 2.0 podspec
Pod::Spec.new do |s|
s.name = 'cocos2d'
s.license = 'MIT'
s.version = '2.0.0'
s.summary = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications.'
s.description = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications for iPod Touch, iPhone, iPad and Mac. It is based on the cocos2d design but instead of using python it, uses objective-c.'
s.homepage = 'http://www.cocos2d-iphone.org'
s.author = { 'Ricardo Quesada' => 'ricardoquesada@gmail.com', 'Zynga Inc.' => 'https://zynga.com/' }
s.source = {:git => 'https://github.com/cocos2d/cocos2d-iphone.git', :tag => 'release-2.0'}
common_sources = FileList['cocos2d/**/*.{h,m,c}'].exclude(/Platforms\/.+\//) +
FileList['external/libpng/*.{h,c}'].exclude(/pngtest/) +
['external/kazmath/src/**/*.{c,h}', 'external/kazmath/include/**/*.{c,h}']
s.osx.source_files = common_sources + ['cocos2d/Platforms/Mac/*.{h,m}']
s.ios.source_files = common_sources + ['cocos2d/Platforms/iOS/*.{h,m}']
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/cocos2d/external/kazmath/include"' }
s.frameworks = ["OpenGLES", "QuartzCore", "GameKit"]
s.library = 'z'
s.subspec 'CocosDenshion' do |p|
common_sources2 = ['CocosDenshion/CocosDenshion/*.{h,m}', 'CocosDenshion/CocosDenshionExtras/CDXPropertyModifierAction.{h,m}']
p.ios.source_files = common_sources2
p.osx.source_files = common_sources2 + ['CocosDenshion/CocosDenshionExtras/CDXMacOSXSupport.{h,m}']
p.frameworks = ["OpenAL", "AVFoundation", "AudioToolbox"]
end
s.prefix_header_contents = '''
#define CC_ENABLE_GL_STATE_CACHE 1
'''
def s.copy_header_mapping(from)
from.relative_path_from(Pathname.new('cocos2d'))
end
end

Podfile

platform :ios, '5.0'

pod 'BlocksKit'
pod 'cocos2d', '2.0.0'
pod 'TestFlightSDK'
pod 'JRSwizzle'
pod 'InAppSettingsKit'

inhibit_all_warnings!

Error

different prefix: "" and "/Users/david/Dropbox/Projects/GraviMaze/Pods"
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:730:in `relative_path_from'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:209:in `relativize_from_sandbox'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:229:in `relative_source_files_by_spec'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:229:in `map'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:229:in `relative_source_files_by_spec'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:228:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:228:in `relative_source_files_by_spec'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/local_pod.rb:405:in `add_file_references_to_project'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:22:in `project'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:22:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:22:in `project'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:118:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/user_interface.rb:77:in `message'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:117:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/user_interface.rb:37:in `section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/installer.rb:112:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/command/update.rb:24:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/lib/cocoapods/command.rb:75:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0.rc3/bin/pod:16
/usr/bin/pod:23:in `load'
/usr/bin/pod:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment