Third party application cannot write to disk I downloaded this application: Donkey Simulator

And after unzipping there should be an executable file but also a folder called "log", and once the application is running, new files are written into this "log" folder.

However this does not happen and they warned about this situation:


  If logs are not being generated you are probably running a version of
  OS X that sandboxes untrusted applications. This prevents the
  simulator writing to disk. To resolve this, move the executable within
  the Applications folder.


Their solution of dragging the app into the Applications folder didn't solve the issue.
The logs are indeed getting created. I executed the app on a Mac running macOS High Sierra 10.13.4 (17E199). I have verified the log creation by precisely following the steps documented on the linked download web-page. Three important instructions to take note of from the linked web-page:



  If logs are not being generated you are probably running a version of OS X that sandboxes untrusted applications. This prevents the simulator writing to disk. To resolve this, move the executable within the Applications folder.


  This simulator can create log data in the donkey tub format. This is stored in the log dir at the root of the folder next to the executable. On the mac you will need to browse the package contents to see this folder. If this folder is missing, no data will be recorded.


  Hit Auto Drive w Rec button.



Now, follow the steps as described below:


Double click the downloaded DonkeySimMac.zip file. It will extract DonkeySimMac/donkey_sim.app app bundle.
Move/copy donkey_sim.app to /Applications directory.
Run donkey_sim.app by right clicking (please don't double click) on the app icon. Upon first launch (only), you'll be presented with a dialog box stating

"donkey_sim.app" is an application downloaded from the Internet. Are you sure you want to open it?


Click Open to launch the app.
Select your preferred Graphics options and hit Play!.
Start scene of your choice by double clicking.
Hit Auto Drive w Rec button.
You'll be able to see a running counter against the label Log in bottom left corner of the app window. This verifies that the logs are getting generated.





Once you are done, click Stop → Exit → Quit.
Navigate to /Applications directory.
Right click on donkey_sim.app and select Show Package Contents.
Double click to open log directory.
Voila! Your logs are here.




Observation: Log generation only works when either Joystick/Keryboard w Rec or Auto Drive w Rec option is selected. (Yes, keyboard is mistyped as Keryboard!).