lib/gym/detect_values.rb in gym-1.10.0 vs lib/gym/detect_values.rb in gym-1.11.0

- old
+ new

@@ -32,10 +32,12 @@ end # Helper Methods def self.detect_provisioning_profile - unless Gym.config[:provisioning_profile_path] + if Gym.config[:provisioning_profile_path].nil? + return unless Gym.config[:use_legacy_build_api] # we only want to auto-detect the profile when using the legacy build API + Dir.chdir(File.expand_path("..", Gym.project.path)) do profiles = Dir["*.mobileprovision"] if profiles.count == 1 profile = File.expand_path(profiles.last) elsif profiles.count > 1