motion/core/ios/device.rb in bubble-wrap-1.9.6 vs motion/core/ios/device.rb in bubble-wrap-1.9.7

- old
+ new

@@ -44,10 +44,10 @@ # Return whether app is being run in simulator # @return [TrueClass, FalseClass] true will be returned if simulator, false otherwise. def simulator? @simulator_state ||= begin if ios_version.to_i >= 9 - !NSBundle.mainBundle.bundlePath.start_with?('/var/') + NSBundle.mainBundle.bundlePath !~ /^(\/private)?\/var/ else !(UIDevice.currentDevice.model =~ /simulator/i).nil? end end end