The code signature version is no longer supported
Notice
This answer is mostly for people using older versions of Xcode. My build farm was for a time stuck at Xcode 12.4 because some Mac minis couldn't be upgraded past Catalina. If you are using a recent Xcode 13+ this is not your issue. Probably cruft of some kind in your project.
If you're still using an Xcode 12 release it is time to let go. The only reason to use 12.4 would be because you're stuck on Catalina and new problems are cropping up that will not be worked around so easily.
codesign --generate-entitlement-der
Apple has changed the codesign signature to include DER encoded entitlements in addition to the plist encoded entitlements. This additional DER encoded entitlements section is required in iOS 15 and becomes the default behavior of codesign in the latest Xcode. To use codesign on an older machines with an older version of Xcode add the --generate-entitlement-der
flag to your call to codesign.
If signing through Xcode, you can add this flag to the OTHER_CODE_SIGN_FLAGS
setting in the Build Settings tab.
If codesigning at the command-line:
CODESIGN_ALLOCATE=$( xcrun --find codesign_allocate ); export CODESIGN_ALLOCATE
xcrun codesign --generate-entitlement-der ...
The source of this information was the Apple Forum thread and the answer from Matt Eaton in DTS at Apple.
In the Xcode 12.5 Release Notes there is also a reference to the new signature format. However, it seems the information is not entirely correct.
General advice
If you have a non-trivial setup like CocoaPods, you should probably de-integrate and re-integrate and of course do a project clean. These sorts of 'me too' answers really just add noise to the signal and anyone doing this sort of development should have already tried this.
The code signature version is no longer supported with Xcode 13
It ended up being that Xcode needed to be cleaned
Select Menu Bar > Product > Clean
The code signature version is no longer supported on latest version of everything
I was able to solve this! It turns out that some of the Firebase libraries were causing this error. I stripped it down to the most bare bones of what I needed from them and it worked.
Xcode Unable to install app to iPhone(iOS 14.6): The code signature version is no longer supported
I fixed it myself:
embed flutter module(App.framework, Flutter.framework, etc) by CocoaPods.
iOS 15 - Enterprise provisioning profile (inHouse) - The code signature is no longer supported - iOS App with watch extension - DER entitlement issue
Ok. The problem was fixed by setting all the static frameworks from 'Sign and Embed' to 'Do Not Embed'. This was done for every target
I answered in detail over here
This Code Signature is no longer supported when building app on iPhone 12
Note: Also, you need to use Xcode 13.1 otherwise watch app won't install
Code Signature Version is not Supported - Error
I needed to make sure to click do not embed
on the frameworks tab. This allowed it to work properly. Check the settings in Xcode, as mine were set default to Embed
Related Topics
What Does It Mean for Something to Be Thread Safe in iOS
Why Does "Try Catch" in Objective-C Cause Memory Leak
Get Each Line of Text in a Uilabel
iOS How to Dismiss Uialertview with One Tap Anywhere
Xcode 10 Not Being Able to Archive Project
Audiokit iOS Aksamplermetronome
How to Crop a Uiimage in Swift
Aws Cognito iOS Developer Authenticated Identities
Warning in Custom Map Annotations Iphone
Make Swift Assume Degrees for Trigonometry Calculations
Pdfkitten Is Highlighting on Wrong Position
Draggesture on a VStack with Lot of Buttons, How to Detect When the Drag Is Inside a Button
Can the -Objc Flag Be Applied Selectively to Static Libraries
Avaudiosession .Defaulttospeaker Changes Mic Input
How to Change a Swiftui Color to Uicolor
Disable iOS Simulator 'Connect Hardware Keyboard' Programmatically