参考链接:ios - The code signature version is no longer supported - Stack Overflow

用xcode 12.3 、12.4 运行 iOS15 的真机,会报:

Unable to install XXXX

问题提示:

Detail:

...

The code signature version is no longer supported  :签名方式不支持

...

System Information

macOS Version 10.15.7 (Build 19H1323)

Xcode 12.4 (17801) (Build 12D4e)

Timestamp: 2021-09-23T17:06:32+08:00

原因:

“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.

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.”

--翻译:

苹果已经改变了代码签名,除了plist编码的权利外,还包括DER编码的权利。这个额外的DER编码权利部分在iOS 15中是必需的,并且成为最新Xcode中的默认代码设计行为。要在具有旧版本Xcode的旧计算机上使用代码设计,请在对代码设计的调用中添加--generate-der标志。
如果通过Xcode签名,则可以将此标志添加到“其他\u代码\u签名\u标志”设置中。
如果在命令行进行代码签名:
代码设计\u分配=$(xcrun--查找代码设计\u分配);出口协同设计
xcrun代码设计--生成授权订单。。。
这些信息的来源是苹果论坛的帖子和Matt Eaton在苹果DTS中的回答。
在Xcode 12.5发行说明中还提到了新的签名格式。然而,这些信息似乎并不完全正确。

总之就是一句话:

就是在iOS15中使用了新的代码签名方式,请使用Xcode 12.5来运行它

解决:

第一步:首先下载 15.0的真机包

文章地址:iOS 最新 真机包 调试包(15.0、14.8、14.7.1、14.7、14.6、14.5、)_ws1836300的博客-CSDN博客

下载地址:

https://download.csdn.net/download/ws1836300/24321922

第二步:

TARGETS--Building Setting-- OTHER_CODE_SIGN_FLAGS

在你的调试模式下 添加:

--generate-entitlement-der

如图:

第三步:重新运行或者重启运行

Xcode12.3 、12.4 运行 iOS15 :The code signature version is no longer supported相关推荐

  1. The code signature version is no longer supported.

    flutter 运行报错 Unable to install "Runner" Domain: com.apple.dt.MobileDeviceErrorDomain Code: ...

  2. macOS下加载动态库dylib报code signature invalid错误的解决办法

    一.现象描述 在macOS上搞开发也有一段时间了,也积攒了一定的经验.然而,今天在替换工程中的一个动态库时还是碰到了一个问题.原来工程中用的是一个静态库,调试时发现有问题就把它替换成了动态库.这本来没 ...

  3. Electron 打包Mac安装包代码签名问题解决方案Could not get code signature for running application

    Electron 打包Mac安装包代码签名问题解决方案Could not get code signature for running application 参考文章: (1)Electron 打包 ...

  4. adb shell 运行时报错“adb server version (26) doesn‘t match this client (39); killing...“的解决方案

    adb shell 运行时报错"adb server version (26) doesn't match this client (39); killing..."的解决方案 参 ...

  5. App发布系列--苹果开发证书运行机制(一) Code Signing

    最近看了objc.io上第17期中的文章 <Inside Code Signing> 对应的中文翻译版 <代码签名探析> ,受益颇深,对iOS代码签名机制有了进一步的认识.想了 ...

  6. Mac虚拟机实现ios UI自动化教程-最新版本(MacOS 12.1,ios15.1)

    本文基于win10系统安装的mac 12.1版本 重点: 若想使用虚拟机安装mac实现ios自动化,强烈建议安装最新版本的macOS系统,曾尝试安装macos 10.13 / 10.14.6 安装后, ...

  7. [填坑]Ubuntu18.04 QT5.12工程运行报错

    最近有一个在Windows上写的QT项目,想转到Ubuntu18.04上运行,但是却生成报了一堆错误 最多的是:error: GL/gl.h: No such file or directory 原因 ...

  8. npm run dev 运行报错code ELIFECYCLE

    报错原因没有找到core/build/.pack/webpack.config.js'这个文件,新建一个空白的就行了

  9. linux gdb#039;查找寄存器地址,GDB信息寄存器命令 - 当在gdb运行codeinfo registers/code输出...

    info registers命令以原始格式(十六进制)和自然格式打印寄存器. 自然格式是基于寄存器的类型,在gdb的源代码中的xml文件中声明.例如,i386/64bit-core.xml包含: 可以 ...

  10. java 程序在Eclipse 或者 Linux 运行报 Unsupported major.minor version 51.0解决办法

    解决Unsupported major.minor version 51.0错误 这个问题主要是由于你的jdk 版本不同导致的 例如 用jdk7编译的class文件放到基于jdk6运行在tomcat之 ...

最新文章

  1. Autofac IoC容器基本使用步骤【1】
  2. P4196 [CQOI2006]凸多边形 /【模板】半平面交
  3. keep行走和计步_‎App Store 上的“Keep - 跑步健身计步瑜伽”
  4. alias怎么每次登陆都保存_设置alias别名并使之重启或者注销用户之后依旧生效...
  5. 添加图标_图标变化、小程序添加到桌面...微信电脑版这些功能更新!
  6. 基础的面试知识,成就面试宝典
  7. 十多年前的 Adobe ColdFusion 漏洞被用于勒索攻击
  8. python中tqdm的用法
  9. 等保三级多久测评一次?每年都要测评吗?
  10. 数组分割 java_分割java数组
  11. Maya Python脚本入门
  12. 先进制造技术论文_轴承先进锻造工艺及制造技术
  13. 华为内部访谈:凡是溜须拍马的员工,一律拿掉
  14. python编程心得体会800字_Python学习心得体会
  15. 抖音全球购安心购服务规范|四川鹰迪
  16. 三国群英传霸业之王服务器维护,20200901维护公告
  17. 开源OA办公平台搭建教程:O2OA+Arduino实现物联网应用(五)
  18. 从JMM到CAID再到分布式事务-1
  19. [paper] CE2P
  20. AVB源码学习(七):AVB2.0-Super动态分区介绍

热门文章

  1. macOS的Fn键实用技巧
  2. VMware mac虚拟机如何安装Windows系统
  3. 关于Socket踩过的一些坑
  4. 触发器和存储过程的使用
  5. json 生成 json字符串
  6. 微博短链接解析ShortUrl【PHP代码实现】
  7. 踢向《英雄王座》的面目全非脚
  8. 超炫的3D特效程序管理功能android
  9. Eclipse中最有用的快捷键组合
  10. Google 出品的 Java 编码规范和编程指南,权威又科学,强烈推荐