Simulator missing occasionally in macos builds


#1

As you can check here: https://circleci.com/gh/TheBrainFamily/TheBrain2.0/1445 in step:
“Installing and link expo ios app”

I occasionally get an error (it works 90% of the time, and this is a simple installation of a tool, so I can’t understand how this could be caused by a timing issue due to my mistake?)

I isolated this into a separate step in a workflow so I can easily rerun just this, but it’s annoying and wasteful. :slight_smile: Please help!

`^D^DCan't determine id of Simulator app; the Simulator is most likely not installed on this machine { Error: Command failed: osascript -e id of app "Simulator"
0:2: execution error: Can’t get application "Simulator". (-1728)

    at ChildProcess.exithandler (child_process.js:271:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Socket.stream.socket.on (internal/child_process.js:348:11)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at Pipe._handle.close [as _onclose] (net.js:547:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'osascript -e id of app "Simulator"' }
[exp] Simulator not installed. Please visit https://developer.apple.com/xcode/download/ to download Xcode and the iOS simulator. If you already have the latest version of Xcode installed, you may have to run the command `sudo xcode-select -s /Applications/Xcode.app`.

#2