When I run my sandboxed application in macOS Sierra, I find this message in the Log :
2016-09-21 12:08:42.787003 MyApp[1505:63581] warning:
Try to find answers here:
Also, may help:
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.terminal</string>
<string>com.googlecode.iterm2</string>
<string>com.apple.finder</string>
</array>
</dict>
<key>com.apple.security.temporary-exception.shared-preference.read-write</key>
<array>
<string>com.apple.finder</string>
</array>
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.terminal</string>
<string>com.googlecode.iterm2</string>
<string>com.apple.finder</string>
</array>
</dict>
!!! If you try to submit to AppStore be informed that apple do not allow do this:
macOS applications follow the pattern of sandbox. This means that you need to explicitly allow your application to read/write files, otherwise you encounter a permission problem that trigger some errors (one of them is in the form of the warning that you have underlined).
On the Capabilities tab of your application, be sure to enable at least one of the file access methods.