lib/scan/detect_values.rb in scan-0.11.1 vs lib/scan/detect_values.rb in scan-0.11.2

- old
+ new

@@ -31,12 +31,11 @@ def self.default_derived_data return unless Scan.config[:derived_data_path].to_s.empty? default_path = Scan.project.build_settings(key: "BUILT_PRODUCTS_DIR") # => /Users/.../Library/Developer/Xcode/DerivedData/app-bqrfaojicpsqnoglloisfftjhksc/Build/Products/Release-iphoneos - # We need to go one folder up, since tests don't run inside 'Release-iphoneos' - # but in 'Debug-iphonesimulator' - default_path = File.join(File.dirname(default_path), "Debug-iphonesimulator") + # We got 3 folders up to point to ".../DerivedData/app-[random_chars]/" + default_path = File.expand_path("../../..", default_path) UI.verbose("Detected derived data path '#{default_path}'") Scan.config[:derived_data_path] = default_path end def self.filter_simulators(simulators, deployment_target)