Method: RunLoop::Core.expect_simulator_compatible_arch
- Defined in:
- lib/run_loop/core.rb
.expect_simulator_compatible_arch(device, app, xcode) ⇒ Object
Note:
This method is implemented for CoreSimulator environments only; for Xcode < 6.0 this method does nothing.
Raise an error if the application binary is not compatible with the target simulator.
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/run_loop/core.rb', line 125 def self.expect_simulator_compatible_arch(device, app, xcode) if !xcode.version_gte_6? RunLoop.log_warn("Checking for compatible arches is only available in CoreSimulator environments") return end lipo = RunLoop::Lipo.new(app.path) lipo.expect_compatible_arch(device) RunLoop.log_debug("Simulator instruction set '#{device.instruction_set}' is compatible with '#{lipo.info}'") end |