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

yizd12fk  于 2023-11-21  发布在  其他
关注(0)|答案(1)|浏览(279)

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

v440hwme

v440hwme1#

我在github上找到了以下解决方案:Github问题评论
将以下代码片段添加到Podfile中的post install函数中。它为我修复了生产(fastlane)和安装中的问题。

  1. post_install do |installer|
  2. ...
  3. # https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1201464693
  4. installer.pods_project.targets.each do |target|
  5. if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
  6. target.build_configurations.each do |config|
  7. config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
  8. end
  9. end
  10. end
  11. end

字符串

展开查看全部

相关问题