yarn install problem with xcode

ios: Unable to verify Xcode and Simulator installation

Turned out there weren’t any “Command Line Tools” selected in the Xcode settings. After selecting some it worked for me. Here is how it should look like: