ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): MacOs Catalina v10.15.4
PsychoPy version (e.g. 1.84.x): I installed the latest version of PsychoPy for Mac (StandalonePsychoPy3-2020.1.3-MacOS) but when I open ‘About…’ it shows the version as v2020.1.2
Standard Standalone? (y/n) Yes

What did you try to make it work?:

What specifically went wrong when you tried that?:
My experiment won’t run, and immediately returns: ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)

So I started a new experiment, with only one image component. This experiment starts and displays the image but still displays the same error message. Also, this new experiment returns an empty data file (not recording even the participant that I enter on experiment commencement).

I’ve also tried running the below in terminal but it didn’t work.

defaults write org.python.python ApplePersistenceIgnoreState NO

Other people have suggested that it would work, but it didn’t for me. Eg. https://stackoverflow.com/questions/34515333/applepersistenceignorestate-error-started-just-after-wxpython-installation
https://stackoverflow.com/questions/18733965/annoying-message-when-opening-windows-from-python-on-os-x-10-8/22467012#22467012

Would really appreciate any help. My experiment was nearly complete, but now I’ve hit this error!

Thanks
Josh

Same issue here. I can run it from Builder. But running the exported .py file as a standalone, will produce error:

ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Illegal instruction: 4

See the simple fix here: