Skip to content

Commit

Permalink
Fix visionOS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lpusok committed Jun 18, 2024
1 parent e42d0c6 commit 2de7929
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion destination/device_finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ func (d deviceFinder) FindDevice(destination Simulator) (Device, error) {

// XcodebuildDestination returns the required xcodebuild -destination flag value for a device
func (d Device) XcodebuildDestination() string {
if d.Platform == string(VisionOSSimulator) { // visionOS does not start tests with `id` (as of Xcode 15)
return fmt.Sprintf("platform=%s,name=%s,OS=%s", d.Platform, d.Name, d.OS)
}

// `arch` doesn't seem to work together with `id`
if d.Arch == "" {
if d.Arch == "" { // `arch` doesn't seem to work together with `id`
return fmt.Sprintf("id=%s", d.ID)
}

Expand Down

0 comments on commit 2de7929

Please sign in to comment.