Xcode 在每次构建/运行时都需要开发团队

spa*_*tak 5 xcode react-native xcode14

在将 Xcode 升级到 14.0 版本之前,我在真实设备上重新运行应用程序没有任何问题 - 我只选择了一次开发团队,然后连续构建/运行

现在,升级到 Xcode 14.0 后,每次清理构建后,我都必须在每次后续构建/运行时一次又一次地设置开发团队

在此输入图像描述

F.F*_*ian 0

我在github上找到了以下解决方案:Github Issue Comment

将以下代码片段添加到 Podfile 中的安装后函数中。它为我解决了生产(fastlane)和调试中的问题。

post_install do |installer|

  ...

  # https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1201464693
    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
end
Run Code Online (Sandbox Code Playgroud)