Class: Xcadaptor::AdaptModule::IOS9Module::Bitcode

Inherits:
Object
  • Object
show all
Defined in:
lib/xcadaptor/Adapt/IOS/9.0/bitcode.rb

Class Method Summary collapse

Class Method Details

.runObject

main task



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/xcadaptor/Adapt/IOS/9.0/bitcode.rb', line 11

def self.run
  project =Xcadaptor::Project.new
  project.set_all_target_setting("ENABLE_BITCODE",false) do |target,key,value|
   deploy_version = project.get_target_setting(target,"IPHONEOS_DEPLOYMENT_TARGET") 
   debug_version = deploy_version['Debug'].to_f
   release_version = deploy_version['Release'].to_f
   if(debug_version < 6 || release_version  < 6)
      
      if project.get_target_setting(target,"ENABLE_BITCODE")["Debug"] == "YES"
        puts "-fembed-bitcode is not supported on versions of iOS prior to 6.0. Change bitcode NO\n"
        next true 
      end
   end

   next false 
  end
  
  project.save
end