Different behavior in debug vs compiled

Having a weird issue with WKWebViewControlMBS (need to use it instead of the DesktopHTMLViewer because I need a private session) where while running as a debug build everything works fine, but as a compiled app it fails to load the page enough to execute my javascripts. The site is https so I don’t think it’s a transport security thing.

Wondering if anyone has any ideas on how to debug this. I’ve tried running it from the console to get the system.debuglog output but all it shows is the WKWebViewControlMBS failing to complete the loading of the page.

In my experience, almost always a path problem, assuming a file is ‘local’ to the running app.

Debug apps run in a different location to compiled ones.

1 Like

After lots of hair-pulling, I figured it out.

It’s due to setting the minimum SDK version to MacOS 26 in App Wrapper. That apparently breaks WKWebViewControlMBS somehow.

1 Like