Final solution

Macos 10.5 will do, of course you can see the reference link looks like 10.4.* will be satisfied

1. Download the IPA and use the cli to switch to the directory where the IPA needs to be re-signed

2, IPA unpack, using wildcards in my current folder directory is only one IPA package

unzip -q *.ipa

Copy the code

3. View signature information

/ / reference from HTTP: / / https://xnxy.github.io/2021/06/16/IPA%E7%AD%BE%E5%90%8D%E6%A3%80%E6%9F%A5-iOS15/ / / decentralized command in the terminal, Look for strings like CodeDirectory v=20500. For any value with v less than 20400, you need to re-sign your application. Codesign -dv Payload/*.app Only - then you may need to weigh the signature Page size = 4096-7 = 915 c86eb5653ea2122901068e9735fd3c98d7622ab9aefe478e3c358a9a8ffeb - 6 = 0000000000000000000000000000000000000000000000000000000000000000 -5=7c741a970873bb7f6a05c1ad5b9425f4b5b1ac86645b2cb8c842a57f51818eb5 - 4 = 0000000000000000000000000000000000000000000000000000000000000000 -3=6f00b3831b7c1a3ba39fbfe9fc3a4f2267816bbd2c8d77e1aac17fb1726cf9f3 -2=904f563968898c7569794e19bcd9304d46ca5c0b9f09c792081bdb8ec9c04c92 CDHash=2a38a2b310e7a46c8e88a6f82f50fa31138fd894Copy the code

4, find the machine all the signature of the eg: 1) 8 f98098bc97ae746fdsff5d70da53e1 “iPhone Distribution: Gafdfy FSDFF Group Ltd.”

Security find-identity -v -p coDesigning // 1, use the Codesign identity corresponding to the enterprise certificate to sign codesign-s "F1829123235381F5927F94F070BD22336B7" -f --preserve-metadata --generate-entitlement-der ./Payload/ChngalaxyEmployee.app --verboseCopy the code

It’s a payload

zip -r app.ipa Payload
Copy the code

6. Install ipa to ios15 mobile phone for verification

 ios-deploy --bundle *.ipa
 
Copy the code

To solve the process

solution

  • Upgrade the device to ios15 and re-sign the device online to check whether the installation is correct
  • Upgrade the MAC development computer to the latest system, then re-sign
  • Upgrade the MAC and develop the computer to the latest system, upgrade the project, support the latest version of Xcode, and then re-sign (it will bring some problems not supported by swift3 later development)
/ / using the corresponding Codesign Identity to sign Codesign -s "F1829123235381F5927F94F070BD22336B7" - f - preserve - metadata - generate - entitlement - der. / content/ChngalaxyEmployee. -- verbose/app/view the signature / / reference the related information HTTP: / / https://xnxy.github.io/2021/06/16/IPA%E7%AD%BE%E5%90%8D%E6%A3%80%E6%9F%A5-iOS15/ / / decentralized command in the terminal, Look for strings like CodeDirectory v=20500. For any value with v less than 20400, you need to re-sign your application. Codesign - dv content/ChngalaxyEmployee app codesign - DVVVVV Payload / / / find the machine all the signature of the eg: 1) 8F98098BC97AE746fdsff5D70DA53E1 "iPhone Distribution: Gafdfy FSDFF Group Ltd." Security find-identity - V -p codesigning // IPA 下 载 unzip-q *. Ipa // Payload 下 载 zip-r app.ipa Payload // Install ipA to mobile ios-deploy --bundle *. IpaCopy the code

08-06 records left by others need to be upgraded to Big Sur before normal installation (ios15 is being upgraded, the signature effect is important, the system version of Big Sur is downloaded at the same time, the local space is cleared, and 30gb MAC disk space is reserved)

Juejin. Cn/post / 697133…

Official solutions are being tried

Developer.apple.com/documentati…

Question from the Apple community

Developer.apple.com/forums/thre…

The following error message is reported before re-signing

[70%] VerifyingApplication 2021-09-22 12:50:32.902 ios-deploy[63966:4018382] [!!]  Error 0xe8008029: unknown. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)Copy the code

This is a more detailed solution I think, and does not need to upgrade to the Big SUR system version, the original link can not be found at 😆

For anyone having an issue with code signing their app with the --generate-entitlement-der on macOS Catalina, here is what I did today as a workaround: (1) Built an Ad-Hoc iOS app that targeted iOS 13 on macOS Catalina. I checked the Page size on the signature and saw the  missing -7 value: $ codesign -dvvvvv MyTestApp.app ... Page size=4096 -5=7c741a970873bb7f6a05c1ad5b9425f4b5b1ac86645b2cb8c842a57f51818eb5 - 4 = 0000000000000000000000000000000000000000000000000000000000000000 -3=f7ddc8d932def2f393dfc1719252e61b1561afeed76d32044ae0cd793e380bc6 -2=904f563968898c7569794e19bcd9304d46ca5c0b9f09c792081bdb8ec9c04c92 (2) I tried to install this build from macOS Monterey to an iOS 15 device and received the following error message for (The code signature version is no longer Supported) : the default 11:41:15. 649815-0700 installd 0 x16be2b000 - [MIInstaller performInstallationWithError:] : Installing <MIInstallableBundle ID=com.dts.MyTestApp.app-mattsignature; Version = 1, ShortVersion = 1.0 > the default 11:41:15. 649936-0700 installd com. DTS. MyTestApp - mattsignature: 7:5:1:1: Start: Install (New) default 11:41:15.720695-0700 Installd 0x16Be2B000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 74: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.pEXcje/extracted/Payload/MyTestApp.app : 0xe8008029 (The code signature version is no longer supported.) (3) From here I resigned the MyTestApp.app on macOS Catalina with the --generate-entitlement-der flag: $ codesign -s "DTS Matt Eaton (xxxxxxxxxx)" -f --preserve-metadata --generate-entitlement-der MyTestApp.app Warning: Default usage of --preserve-metadata implies "resource-rules" (deprecated in Mac OS X >= 10.10)! MyTestApp.app: replacing existing signature (4) From here I checked the Page size on the resigned app and saw that -7 is now available.  $ codesign -dvvvvv MyTestApp.app Executable=/path/to/MyTestApp.app/MyTestApp Identifier=com.dts.MyTestApp-mattsignature . Page size=4096 -7=915c86eb5653ea2122901068e9735fd3c98d7622ab9aefe478e3c358a9a8ffeb - 6 = 0000000000000000000000000000000000000000000000000000000000000000 -5=7c741a970873bb7f6a05c1ad5b9425f4b5b1ac86645b2cb8c842a57f51818eb5 - 4 = 0000000000000000000000000000000000000000000000000000000000000000 -3=6f00b3831b7c1a3ba39fbfe9fc3a4f2267816bbd2c8d77e1aac17fb1726cf9f3 -2=904f563968898c7569794e19bcd9304d46ca5c0b9f09c792081bdb8ec9c04c92 CDHash=2a38a2b310e7a46c8e88a6f82f50fa31138fd894 (5) From here, I needed to zip up my Payload/MyTestApp.app directory again and then rename it with an ipa extension. (6) After that I was able to install and run MyTestApp.app properly on an iOS 15 device from macOS Monterey. Matt Eaton DTS Engineering, CoreOS [email protected]Copy the code

Refer to the link

  • Official use xcode introduce various help.apple.com/xcode/mac/c…
  • The official instructions to solve the problem of renewal developer.apple.com/documentati…
  • Proposal of tit-for-tat xnxy. Making. IO / 2021/06/16 /…