class Xcodeproj::Project

Public Instance Methods

configurations() click to toggle source
# File lib/cocoapods-alexandria/helper/xcodeproj.rb, line 3
def configurations
  build_configurations
    .map(&:name)
    .reject { |c| ['Debug', 'Release'].include? c }
end
fix_deployment_target_warnings() click to toggle source
# File lib/cocoapods-alexandria/helper/xcodeproj.rb, line 9
def fix_deployment_target_warnings
  targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] == '8.0'
    end
  end
  save
end
force_bitcode_generation() click to toggle source
# File lib/cocoapods-alexandria/helper/xcodeproj.rb, line 18
def force_bitcode_generation
  targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
    end
  end
  save
end