theos-jailed icon indicating copy to clipboard operation
theos-jailed copied to clipboard

Trouble signing

Open ddaddy opened this issue 10 years ago • 2 comments

Hi, I'm having trouble getting the signing working. I followed your instructions here http://www.bishopfox.com/blog/2015/05/rethinking-repackaging-ios-apps-part-2/

One thing I couldn't do when matching the provisioning profile, is use the app group that patchapp info suggested, i'm guessing because someone else must have the same app group name. Would that have been a problem?

This is the error I get when trying to install the patched app

mobile_installation_proxy[2238] <Error>: 0x16e2d3000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.TuGrFl/extracted/Payload/Snapchat.app/PlugIns/SnapchatShareExt.appex : 0xe8008001 (An unknown error has occurred.)" UserInfo={LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.TuGrFl/extracted/Payload/Snapchat.app/PlugIns/SnapchatShareExt.appex : 0xe8008001 (An unknown error has occurred.)}

ddaddy avatar Jan 27 '16 18:01 ddaddy

When I run Make it says this

Signing JailTest... iPhone Developer: ambiguous (matches "iPhone Developer: Stexxx Mxxx (2VX8XXXXX)" and "iPhone Developer: Chaxxx Gxxx (Q5GSXXXX)" in /Users/dj/Library/Keychains/login.keychain)

Is there somewhere in the Make file I should specify which certificate to use?

ddaddy avatar Jan 28 '16 13:01 ddaddy

Had the same issue, just temporarily delete the certificate that will not be used. You can also specify the certificate that you want to use editing the patchapp.sh

andugu avatar Feb 21 '16 18:02 andugu