class Podage::OSXBuilder
Public Instance Methods
build(configuration, &block)
click to toggle source
Calls superclass method
Podage::Builder#build
# File lib/podage/builders/osx_builder.rb, line 31 def build(configuration, &block) super build_frameworks configuration copy_frameworks end
platform()
click to toggle source
# File lib/podage/builders/osx_builder.rb, line 47 def platform return :osx end
target_name()
click to toggle source
# File lib/podage/builders/osx_builder.rb, line 41 def target_name return 'OSX' end
Private Instance Methods
build_frameworks(configuration)
click to toggle source
# File lib/podage/builders/osx_builder.rb, line 55 def build_frameworks(configuration) schemes = Dir.glob(PODS_PROJECT_PATH + "/xcshareddata/**/*.xcscheme") schemes.each do |scheme| if !scheme.end_with?("Pods-OSX.xcscheme") name = File.basename scheme no_extension = File.basename(scheme, ".*" ) puts "" puts "Building ".bold + no_extension.green puts "" xcodebuild_framework(BUILD_PATH + "/Pods/Pods.xcodeproj", no_extension, configuration, OSX_ARCHS, BUILD_PATH + '/macosx', OSX_PLATFORM) end end end
copy_frameworks()
click to toggle source
Build Frameworks
# File lib/podage/builders/osx_builder.rb, line 76 def copy_frameworks FileUtils.mkpath OUTPUT_PATH + '/osx' path = BUILD_PATH + '/macosx' if Dir.exists?(path) FileUtils.cp_r path, OUTPUT_PATH + '/osx/' end end