Xcode 询问需要为 ID 卡扫描的 POD 捆绑包签名证书

KAR*_*MED 2 xcode code-signing ios cocoapods swift

在此输入图像描述

我将 Xcode 13 更新到 14。之前我能够在 Xcode 13 中实现构建。更新到 Xcode 14 后出现错误

Pods.xcodeproj 签署“ID-Card-Camera-IDCardCameraResources”需要开发团队。在签名和功能编辑器中选择开发团队。

Ana*_*and 6

  1. 在 POD 文件末尾添加以下代码。
  2. 再次安装 Pod
  3. 运行应用程序

post_install 执行|安装程序|

installer.pods_project.targets.each do |target|
  if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
    target.build_configurations.each do |config|
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end
Run Code Online (Sandbox Code Playgroud)

结尾

图1