Reputation: 865
I'm trying to debug simulated devices in Xcode's Simulator using desktop Safari's Web Inspector.
A simulated device (iPad Air 2) does not appear in Safari's Develop
menu when its Simulator is running. (The Simulator
menu item doesn't even appear at all.)
Settings > Safari > Develop > Web Inspector
enabledIs there any way to actually get this to work?
Upvotes: 6
Views: 3309
Reputation: 3760
You may need to make sure that Xcode command line tools was installed and configured properly:
xcode-select --install
.xcode-select -version
. xcode-select -print-path
.sudo xcode-select -switch "your Xcode path, usually it is /Applications/Xcode.app/ "
, provide your password if required by Terminal.After above steps, quit simulator and Safari, then restart them. The simulator should appear in the Develop menu of Safari.
Worked on macOS Catalina 10.15.4, Xcode 11.4, and Safari 13.1.
Upvotes: 1
Reputation: 106
Sorry if this is a bit late, but for the new version of xcode you need safari technology preview (https://developer.apple.com/safari/technology-preview/), and use that instead of regular safari to debug xcode simulator
Upvotes: 9