sauce-archives / isign

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

invalid signature (code or signature have been modified) #79

Open iLoop2 opened 7 years ago

iLoop2 commented 7 years ago

Hi

We have been trying to use isign to resign the .ipa flies put when we try to install they fail to do so. Tried both from python and the common line with the same result. The isign tool creates a new .ipa but it fails to verify: codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)' Payload/Incident.iOS.app Payload/Incident.iOS.app: invalid signature (code or signature have been modified) In architecture: armv7

If I use codesign tool to resign the spa everything works out fine. Commands used to resign using isign: export OPENSSL=/usr/local/Cellar/openssl/1.0.2j/bin/openssl isign -p MyApp_distribution.mobileprovision -o demo.ipa MyApp.ipa

OS used RHEL 7 and macOS 10.12 same behaviour on both regarding the isign tool. On the Mac I have: Xcode 8.1 OpenSSL 1.0.2j 26 Sep 2016 Python 2.7.12

Do you have any advice to what I do wrong?

Fredrik

aluedeke commented 7 years ago

does your app contain any extensions (like those: https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/)

Fenil15 commented 5 years ago

@aluedeke iPA I am using doesn't have any extension but getting the same error while installing the app on device.