Debug web app using xCode iOS Simulator
Why do we need to debug web app in iOS Simulator?
- Debug web app in mobile iphone environment
- Debug and test Progressive Web App (PWA) in iOS environment
Prerequisites
Enable iOS Simulator in xCode
- Open xCode
- Go to
Xcode>Developer Tools>Simulator
Then you can see the iOS Simulator window pop up.
Debug web app in iOS Simulator
Mobile simulator side
- Open Safari in iOS Simulator
- Go to the web app URL you want to debug
Desktop side
- Open Safari in your Mac
- Go to
Develop
Then we can see the iOS Simulator in the list like below:

- Select the page under either
SafariorService Worker, then you will see a new dev tool window pop up.
NOTE:
SafariandService Workerare the two different contexts, so you will need to select both of them if you want to inspect both contexts.
