objective c - Cocoa Sparkle framework error on code signature on Mountain Lion -
i developing application mac os x. have code signed 3rd party apple developer identity, independent distribution. in code, make checks validity of signature corefoundation functions following :
seccoderef mycode; status = seccodecopyself(kseccsdefaultflags,&mycode); status = seccodecheckvalidity(mycode,kseccsdefaultflags,null); nsstring *result; switch (status) { case noerr: result = @"code signature present"; break; case errseccsunsigned: result = @"executable unsigned"; break; case errseccssignaturefailed: result=@"signature failed."; break; default: result=@"error validating signature"; break; } nsalert *myalert =[[nsalert alloc] init]; [myalert setalertstyle:nscriticalalertstyle]; [myalert setmessagetext:@"program beta error"]; [myalert setinformativetext:result]; [myalert runmodal]; secstaticcoderef filecode; status = seccodecopystaticcode(mycode, kseccsdefaultflags, &filecode); if (status != noerr) { // nslog(@"unable static code object."); } cfdictionaryref signinginfo = null; status = seccodecopysigninginformation(filecode, kseccssigninginformation, &signinginfo); nsdictionary *mydictionary = [nsdictionary dictionarywithdictionary:(__bridge nsdictionary *)(signinginfo)]; the kseccssigninginformation parameter specified allows me gather information signing developer's identity, , team id. works fine in 10.10 yosemite , 10.9 mavericks, fails on 10.8 mountain lion. have checked situation rb app checker lite , indeed, under mountain lion, same executable, different results shown on following screenshots :
1)this situation in 10.10 , 10.9, , appears normal, , code gets team id.

2)this situation in 10.8 mountain lion, rb app checker lite fails validate executable :

3)if expand error, learn caused sparkle :

i have sparkle xcode project added application's project , working fine under 10.10 , 10.9. on 10.8 too, if launch application sparkle not complain signature, corefoundation functions fail determine team id, although report signature present.
any appreciated. thanks
p.s. have been helped lot on problem, , recommended me remove 3rd party certificate signing 1 of executables autoupdate.app, showed in previous screenshots being signed 3rd party certificate. sign autoupdate.app same developer id certificate, error still remains. can see in following screenshot, if check sparkle framework alone rb app checker lite, says validates correctly :

while if ad program required copy files phase sparkle framework, same error before :

again, appreciated.
Comments
Post a Comment