Skip to content

Commit

Permalink
Added arch=x86_64 for scan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdholtz committed May 17, 2023
1 parent 7b3e224 commit 34122df
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scan/lib/scan/detect_values.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,18 @@ def self.detect_destination
return
end

arch = ""
if Etc.uname[:machine] == "i386"
",arch=x86_64"
end

# building up the destination now
if Scan.building_mac_catalyst_for_mac?
Scan.config[:destination] = ["platform=macOS,variant=Mac Catalyst"]
Scan.config[:destination] = ["platform=macOS,variant=Mac Catalyst" + arch]
elsif Scan.devices && Scan.devices.count > 0
Scan.config[:destination] = Scan.devices.map { |d| "platform=#{d.os_type} Simulator,id=#{d.udid}" }
Scan.config[:destination] = Scan.devices.map { |d| "platform=#{d.os_type} Simulator,id=#{d.udid}" + arch }
elsif Scan.project && Scan.project.mac_app?
Scan.config[:destination] = min_xcode8? ? ["platform=macOS"] : ["platform=OS X"]
Scan.config[:destination] = min_xcode8? ? ["platform=macOS" + arch] : ["platform=OS X" + arch]
end
end

Expand Down

0 comments on commit 34122df

Please sign in to comment.