So, recently I got the task to do 'thing' in the web view. And in that project, I'm using the Micro View Controller technique. Every VC will have a nib, so I make one for the web view.
Everything works well until I archive the app and run it in production env. Guest what? the app crash immediately when I open the web view, while it did work perfectly when debug. After half an hour researching, debugging, I found out that, there are some errors with WKWebView when using it in the nib file.
Switching to add the web view programmatically and it works! thank god
So, recently I got the task to do 'thing' in the web view. And in that project, I'm using the Micro View Controller technique. Every VC will have a nib, so I make one for the web view.
Everything works well until I archive the app and run it in production env. Guest what? the app crash immediately when I open the web view, while it did work perfectly when debug. After half an hour researching, debugging, I found out that, there are some errors with WKWebView when using it in the nib file.
Switching to add the web view programmatically and it works! thank god