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

yizd12fk  于 11个月前  发布在  其他
关注(0)|答案(1)|浏览(181)

在将Xcode升级到14.0版本之前,我在真实的设备上重新运行应用程序时没有遇到任何问题-我只选择了一次开发团队,然后不断进行构建/运行
现在,升级到Xcode 14.0后,每次清理构建后,我都要在随后的每次构建/运行中一次又一次地设置开发团队
x1c 0d1x的数据

v440hwme

v440hwme1#

我在github上找到了以下解决方案:Github问题评论
将以下代码片段添加到Podfile中的post install函数中。它为我修复了生产(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

字符串

相关问题