use of spctl command for Cocoa plugin
use of spctl command for Cocoa plugin
- Subject: use of spctl command for Cocoa plugin
- From: Chuck Soper <email@hidden>
- Date: Mon, 30 Jul 2012 11:08:39 -0700
- Thread-topic: use of spctl command for Cocoa plugin
Does anyone know how to use the spctl command to allow a widget plugin to
run? This is a Cocoa plugin in a widget bundle. I'm looking for a solution
that avoids temporarily turning off the "download from anywhere"
preference in Security & Privacy for System Preferences.
I tried the following command:
$ spctl --verbose=4 --add --label "Vela Design Group" \
"~/Library/Widgets/VelaClock Deluxe.wdgt/VCDeluxePlugin.widgetplugin/"
# and I got this result:
~/Library/Widgets/VelaClock Deluxe.wdgt/VCDeluxePlugin.widgetplugin/:
cannot find code object on disk
What spctl parameters can I specify to add the widget plugin to the
assessment rule database and avoid the "cannot find code object on disk"
result?
I've reviewed the man page for the spctl command as well as the info at
the following link, but can't find a solution.
See "Code Signing Tasks" under "Using the spctl Tool to Test Code Signing"
for the following link:
<https://developer.apple.com/library/mac/#documentation/security/Conceptual
/CodeSigningGuide/Procedures/Procedures.html>
# # # # # # # # # # #
More info:
Here are some spctl assessment results for our "VelaClock Deluxe" widget
and Apple's "Unit Converter widgets. The code for the
ConverterPlugin.widgetplugin is signed and the code for the
VCDeluxePlugin.widgetplugin is not signed.
1. The following two results were executed with the Security & Privacy
preference set to: Allow applications downloaded from: Mac App Store and
identified developers.
$ spctl --assess --verbose=4 "/Library/Widgets/Unit
Converter.wdgt/ConverterPlugin.widgetplugin"
/Library/Widgets/Unit Converter.wdgt/ConverterPlugin.widgetplugin: accepted
source=Apple System
#result is "accepted"
$ spctl --assess --verbose=4 "~/Library/Widgets/VelaClock
Deluxe.wdgt/VCDeluxePlugin.widgetplugin/"
~/Library/Widgets/VelaClock Deluxe.wdgt/VCDeluxePlugin.widgetplugin/:
cannot find code object on disk
#result is "cannot find code object on disk"
2. The next two results were executed with the Security & Privacy
preference set to: Allow applications downloaded from: Anywhere.
$ spctl --assess --verbose=4 "/Library/Widgets/Unit
Converter.wdgt/ConverterPlugin.widgetplugin"
/Library/Widgets/Unit Converter.wdgt/ConverterPlugin.widgetplugin: accepted
source=Apple System
override=security disabled
#result is "accepted"
$ spctl --assess --verbose=4 "~/Library/Widgets/VelaClock
Deluxe.wdgt/VCDeluxePlugin.widgetplugin/"
~/Library/Widgets/VelaClock Deluxe.wdgt/VCDeluxePlugin.widgetplugin/:
accepted
override=security disabled
#result is "accepted"
Thanks. I asked a similar question to this last week on cocoa-dev, but I
think the
question is more appropriate on this list.
Chuck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden