The code signature version is no longer supported (DER requirement)

Hi,

I am having trouble understanding what is required in able to sign apps via Xcode.

I've just upgraded to the new OS and Xcode 13 beta.

The app builds successfully but can't be installed.

The details give the following info:

Unable to install "game"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
User Info: {
  DVTErrorCreationDateKey = "2021-12-04 13:23:50 +0000";
  IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
The code signature version is no longer supported.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375

I confirmed the code directory number was ok as per these instructions https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format

Format=app bundle with Mach-O thin (arm64) CodeDirectory v=20400 size=220058 flags=0x0(none) hashes=6866+7 location=embedded Signature size=4791 Signed Time=4 Dec 2021 at 13:29:13 Info.plist entries=37 TeamIdentifier=JXACZTB4K4 Sealed Resources version=2 rules=10 files=89 Internal requirements count=1 size=192

The instructions then say

To check whether the app has the DER entitlements, look for the hash list under Page size in the signature. If -5 contains a value and -7 contains a zero value, or is not present, you need to re-sign your app to include the new DER entitlements.

How do I find the hash list and how do you resign an app?

I've just upgraded to the new OS and Xcode 13 beta.

Which “new OS”? And which “Xcode 13 beta”?

Xcode 13.0 was released a few months back, and it will automatically generate a modern code signature that works on iOS 15.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am using Xcode beta 13.2

OS is Monterey 12.0.1

I am trying to sign an iOS app for the apple store.

So, does the problem reproduce when using the latest released version of Xcode (13.1)?

IMO it’s best to avoid pre-release tools unless you’re specific code is to test compatibility with those tools.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Facing this same issue; Getting this error while running on iOS version >= 15.0. It works fine on the lower version of iOS.  Build app is successful, but it did not install on a physical device. On the simulator, it works fine.  Any solution for this?

The code signature version is no longer supported (DER requirement)
 
 
Q