diff --git a/fastlane/swift/formatting/Rakefile b/fastlane/swift/formatting/Rakefile index ad91133d3e9..1a7f701fb8f 100644 --- a/fastlane/swift/formatting/Rakefile +++ b/fastlane/swift/formatting/Rakefile @@ -8,6 +8,7 @@ task(:brew) do raise '`brew` is required. Please install brew. https://brew.sh/' unless system('which brew') puts('➡️ Brew') + sh('brew update') sh('brew bundle') end diff --git a/scan/lib/scan/module.rb b/scan/lib/scan/module.rb index 4d214f8851c..cc5dee8f888 100644 --- a/scan/lib/scan/module.rb +++ b/scan/lib/scan/module.rb @@ -24,7 +24,7 @@ def scanfile_name def building_mac_catalyst_for_mac? return false unless Scan.project - Scan.project.supports_mac_catalyst? && Scan.config[:catalyst_platform] == "macos" + Scan.config[:catalyst_platform] == "macos" && Scan.project.supports_mac_catalyst? end end diff --git a/scan/spec/detect_values_spec.rb b/scan/spec/detect_values_spec.rb index 212214c514c..d8917e65841 100644 --- a/scan/spec/detect_values_spec.rb +++ b/scan/spec/detect_values_spec.rb @@ -212,7 +212,7 @@ context "catalyst" do it "ios", requires_xcodebuild: true do options = { project: "./scan/examples/standard/app.xcodeproj" } - expect_any_instance_of(FastlaneCore::Project).to receive(:supports_mac_catalyst?).and_return(true) + expect_any_instance_of(FastlaneCore::Project).not_to receive(:supports_mac_catalyst?) Scan.config = FastlaneCore::Configuration.create(Scan::Options.available_options, options) expect(Scan.config[:destination].first).to match(/platform=iOS/) end