sauce-archives / isign

Code sign iOS applications, without proprietary Apple software or hardware
Other
756 stars 316 forks source link

iSign builds bad IPA after inserting new LC_LOAD_DYLIB and a new dylib to package #92

Open JonGabilondoAngulo opened 7 years ago

JonGabilondoAngulo commented 7 years ago

Hi, I'm inserting a LC_LOAD_DYLIB before LC_CODE_SIGNATURE. This means adding a new file.dylib inside the IPA (app). I haven't changed the LC_CODE_SIGNATURE values. Codesign on Mac does create a correct ipa that installs and loads the dylib on start.

Im guessing that adding new content is not contemplated by iSign. That would need to modify the LC_CODE_SIGNATURE with new hash etc. ? Am I right ?

Using iSign the App does not install:

Installing 'com.hp.testapp.UICatalog-NI' Install: CreatingStagingDirectory (5%) Install: ExtractingPackage (15%) Install: InspectingPackage (20%) Install: TakingInstallLock (20%) Install: PreflightingApplication (30%) Install: InstallingEmbeddedProfile (30%) Install: VerifyingApplication (40%) ERROR: Install failed. Got error "ApplicationVerificationFailed" with code 0xe8008019: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.FWN9Ch/extracted/Payload/UICatalog_NI.app : 0xe8008019 (The application does not have a valid signature.)

I'd appreciate any help. Thanks.