How to run in Xcode debugger

  • I have a PyQt5 app that uses QWebEngineView (Qt 5.12.7 + PyQt 5.14.2). When running it on MacOS 10.15.4 via Xcode I see the following message in the Xcode debugger:

    QtWebEngineProcess[44593:11856356] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x10c041010> (Domain:, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

    I guess that this is related somehow to entitlements but I can't find any information about how to enable these for debugging as all the available information seems to be related to signing for deployment.

    What do I need to do to make this work for running it during development?

  • This was caused by using MacPorts versions of Qt and PyQt. Building my own from source has resolved the issue.

Log in to reply