Vote count:
0
I have developed a Mac app (under Mac OS X 10.9.5) using PyQT4, and packaged to XXXX.app using py2app. And then I signed the app successfully, although encountered a few hard issues which were all resolved. I verified it using the command below:
$ spctl --assess --verbose=4 --type execute XXXX.app
XXXX.app: accepted
source=Developer ID
I can launch the app with no problem and almost all functions are working except one important function - calling an applescript in the app.
In the app, I used applescript python library to call the script:
applescript.AppleScript(script_mac).run()
Also I tried to use PyObjc in the following way:
script = NSAppleScript.alloc().initWithSource_(script_mac)
script.executeAndReturnError_(None)
Both approaches couldn't work in the signed app, but worked perfectly if I didn't sign the app.
I've investigated this issues for about three days, and I think it should be "entitlements" related, but just couldn't figure out the correct way to configure the entitlements properties.
This app will be distributed OUTSIDE of AppStore, so what we need is only to make sure that the applescript function works in the signed app, I'm not sure if the "entitlements" is still needed.
Any help would be much appreciated!
AppleScript doesn't work in a signed Mac app developed via PyQT4
Aucun commentaire:
Enregistrer un commentaire