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?