kSMErrorDomainFramework error 3 - The client and tool did not match requirements
When I call SMJobBless I am getting the following error
2012-03-11 21:37:44.021 MyApp[40313:903] Bless Error: Error Domain=kSMErrorDomainFramework Code=3 UserInfo=0x100129c70 "The operation couldn’t be completed. (kSMErrorDomainFramework error 3 - The client and tool did not match requirements.)"
I have: created self-signed code signing identity through keychain of Joe Developer changed Common Name to Joe Developer in all build settings changed Common Name to Joe Developer in all plists setup SMPrivilegedExecutables in application target Info.plist setup SMAuthorizedClients in helper target Info.plist embed helper tool's plists in the executable itself by setting up "Other Linker Flags" with -sectcreate, __TEXT, __info_plist and -sectcreate, __TEXT, __launchd_plist setup Label attribute as "com.coderama.FileCreationHelper" in the helper's launchd.plist to match the name of the executable Any idea on how to debug this?
More info... Console is showing the following error:
12/03/12 7:23:45 PM /usr/libexec/launchdadd[3469] Could not create requirement from string identifier com.coderama.MyApp and certificate leaf[subject.CN] = "Joe Developer" SecRequirementCreateWithString() error -67052: ([no error string]) [no comment string] 12/03/12 7:23:45 PM /usr/libexec/launchdadd[3469] FAILURE: Job com.coderama.AutoStartScriptHelper could not be installed from /Users/coderama/Library/Developer/Xcode/DerivedData/MyApp-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/MyApp.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper, reason 3. 12/03/12 7:23:45 PM MyApp[3447] Bless Error: Error Domain=kSMErrorDomainFramework Code=3 UserInfo=0x1004084a0 "The operation couldn’t be completed. (kSMErrorDomainFramework error 3 - The client and tool did not match requirements.)"
"SecRequirementCreateWithString() error -67052" refers to "errSecCSReqInvalid -67052 Invalid or corrupted code requirements." This is where the trail ends and I am unsure as to what to do... On 11/03/2012, at 10:15 PM, Prime Coderama wrote:
When I call SMJobBless I am getting the following error
2012-03-11 21:37:44.021 MyApp[40313:903] Bless Error: Error Domain=kSMErrorDomainFramework Code=3 UserInfo=0x100129c70 "The operation couldn’t be completed. (kSMErrorDomainFramework error 3 - The client and tool did not match requirements.)"
I have: created self-signed code signing identity through keychain of Joe Developer changed Common Name to Joe Developer in all build settings changed Common Name to Joe Developer in all plists setup SMPrivilegedExecutables in application target Info.plist setup SMAuthorizedClients in helper target Info.plist embed helper tool's plists in the executable itself by setting up "Other Linker Flags" with -sectcreate, __TEXT, __info_plist and -sectcreate, __TEXT, __launchd_plist setup Label attribute as "com.coderama.FileCreationHelper" in the helper's launchd.plist to match the name of the executable
Any idea on how to debug this?
On 11 Mar 2012, at 11:15, Prime Coderama wrote:
Any idea on how to debug this?
In this context "requirements" is likely to mean "code signing requirements". Use <x-man-doc://codesign> (with the -d flag to display info about the signature and the "-r-" flag to print the designated requirement) on each component and make sure the DR matches. Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
Thanks for the tip regarding codesign. The DR's match what I have setup in the plists:
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.coderama-menubar" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.AutoStartScriptHelper" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.AutoStartScriptHelper" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
Anything else I can try? Thanks in advance! Coderama On 13/03/2012, at 12:43 AM, Quinn The Eskimo! wrote:
On 11 Mar 2012, at 11:15, Prime Coderama wrote:
Any idea on how to debug this?
In this context "requirements" is likely to mean "code signing requirements". Use <x-man-doc://codesign> (with the -d flag to display info about the signature and the "-r-" flag to print the designated requirement) on each component and make sure the DR matches.
Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
I also tried ran codesign's verify command and everything looks fine:
coderama$ codesign --verify -vvvv Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar: valid on disk Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar: satisfies its Designated Requirement
coderama$ codesign --verify -vvvv Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper: valid on disk Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper: satisfies its Designated Requirement
coderama$ codesign --verify -vvvv Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper: valid on disk Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper: satisfies its Designated Requirement
On 13/03/2012, at 10:33 AM, Prime Coderama wrote:
Thanks for the tip regarding codesign.
The DR's match what I have setup in the plists:
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/MacOS/coderama-menubar library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.coderama-menubar" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/coderama-menubar.app/Contents/Library/LaunchServices/com.coderama.AutoStartScriptHelper library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.AutoStartScriptHelper" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
codesign -d -r- Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper Executable=/Users/coderama/Library/Developer/Xcode/DerivedData/coderama-menubar-edcrazjkyuqzdoclyhqekxoyogsb/Build/Products/Debug/com.coderama.AutoStartScriptHelper library => identifier "libSystem.B.dylib" and anchor apple or identifier "libobjc.A.dylib" and anchor apple # designated => identifier "com.coderama.AutoStartScriptHelper" and certificate leaf = H"92d2d829834fed4f56eb34302a7ce9c943372c17"
Anything else I can try?
Thanks in advance! Coderama
On 13/03/2012, at 12:43 AM, Quinn The Eskimo! wrote:
On 11 Mar 2012, at 11:15, Prime Coderama wrote:
Any idea on how to debug this?
In this context "requirements" is likely to mean "code signing requirements". Use <x-man-doc://codesign> (with the -d flag to display info about the signature and the "-r-" flag to print the designated requirement) on each component and make sure the DR matches.
Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
participants (2)
-
Prime Coderama
-
Quinn "The Eskimo!"