I am wanting to open developer tools on an iOS simulator
I have taken the following steps, on a 2016 MacBook running macOS Sierra 10.12.1 and don't know how to get any further:
Now I am wondering what steps do I take to debug, and inspect elements on a webpage as I would in Safari or Chrome developer tools?
Open the in-app developer menu in the simulator by pressing cmd + D.
You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.
Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.
Just press ⌘K it will toggle keyboard.
Open Safari and go to Preferences. Under the Advanced tab, at the bottom, you'll see "Show Develop menu in menu bar". Make sure that is checked like in the image below.
Once that is checked, you'll see a new menu bar item named "Develop" between "Bookmarks" and "Window" in Safari's menu. Under the Develop menu, select "Simulator" and then select the site you want to debug. A new window with the developer tools will then pop up:
Download https://developer.apple.com/safari/technology-preview/
Open the website you want on your simulator.
On "Safari Technology Preview", under
Develop > Simulator --- [SimulatorName] >
select your website from the list.
If you are on a mac, press CMD
+ G
while running the Simulator on XCode. This will allow you to Inspect element
like you can on a web browser.
To hide the menu, press CMD
+ D
.
It looks like the most accepted answer incorrectly assumes the asker is wondering about Safari Simulator, not XCode Simulator.
If you're using React Native then you can install react-devtools
globally and access devtools that way. To do this:
npm install -g react-devtools
from your terminalreact-devtools
from your terminalYou should now see the components list from the React Devtools Electron app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With