Testing ios webview on xcode simulator
Author: Sergey. last updated: 3rd of November, 2020
- Update your MacOS to latest version and download latest xCode. This might take a while, so you can generate your certificate in the meantime
- Generate certificate using https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/
- Follow Yerassyl's instructions how to start webpacker with this certificate https://drive.google.com/file/d/1fRa7TMzT_fRDGvWi74h0tbpB-fqCvitB/view?usp=drive_open
- Follow this tutorial to create an iOS app which opens a WebView https://www.youtube.com/watch?v=zm9g7hPESz8&ab_channel=iOSAcademy
- Add additional button to your storyboard like this:


- Launch iOS Simulator
- Drag and Drop
rootCA.pemonto your iOS Simulator - Start your POWR project
- Click on Open 3002 button and close it after seeing

- Change URL in
buttonTappedfunction if needed. - Now you can see the WebView console from Mac Safari:
