Skip to content

Commit 762dd2d

Browse files
authored
fix: dont look for simulators on windows or linux (#133)
1 parent 1c7fd6a commit 762dd2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devices/simulator.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func runSimctl(args ...string) ([]byte, error) {
121121

122122
// getSimulators reads simulator information from the filesystem
123123
func GetSimulators() ([]Simulator, error) {
124+
if runtime.GOOS != "darwin" {
125+
return []Simulator{}, nil
126+
}
127+
124128
homeDir, err := os.UserHomeDir()
125129
if err != nil {
126130
return nil, fmt.Errorf("failed to get user home directory: %w", err)

0 commit comments

Comments
 (0)