This is Apple's Sandbox Test Case.
App Sandboxing
Pre-requisite:
- set the shebang of setup.py to current python version of your Mac. Possibly this path:
/System/Library/Frameworks/Python.framework/Versions/Current/bin/python2.7
` Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information.
`
setup.py looks like this:
#!/System/Library/Frameworks/Python.framework/Versions/Current/bin/python2.7 ...
- install dependency from pip (may need sudo)
- appscript
- mutagen
sudo pip install -r requirements.txt
- build
./setup.py py2app
- run
open ./dist/Fluke.app
- failing with following in the log
29/04/2016 5:10:32.826 PM appleeventsd[56]: SecTaskLoadEntitlements failed error=22 29/04/2016 5:10:33.022 PM Fluke[4318]: Fluke Error 29/04/2016 5:10:33.076 PM launchservicesd[82]: SecTaskLoadEntitlements failed error=22 29/04/2016 5:10:33.081 PM launchservicesd[82]: SecTaskLoadEntitlements failed error=22 29/04/2016 5:10:36.018 PM sharedfilelistd[3327]: SecTaskLoadEntitlements failed error=22