签署“GoogleSignIn-GoogleSignIn”需要开发团队

Dav*_*yan 21 xcode swift

更新到 Xcode 14 后,我收到以下错误:

Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor.`
 
Run Code Online (Sandbox Code Playgroud)

我尝试过进行 Pod 更新,但不起作用。

Vah*_*yan 35

切换到 Xcode 14 后我遇到了同样的问题。将其添加到您的 podfile 并调用pod install. 这将永久解决该问题。

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      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
end
Run Code Online (Sandbox Code Playgroud)

  • 好的,这解决了我的问题,但是您能给我们更多背景信息吗?为什么这可以解决问题?我想从中学习,从这里复制粘贴将解决我的问题,但也会缩小我的大脑,哈哈 (2认同)

小智 9

将其添加到您的 podfile 并调用pod install

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.build_settings['WRAPPER_EXTENSION'] == 'bundle'
        config.build_settings['DEVELOPMENT_TEAM'] = 'YOUR_DEVELOPMENT_TEAM_ID'
      end
    end
  end
end
Run Code Online (Sandbox Code Playgroud)


El-*_*Dow 8

从目标 POD 选择

GoogleSignIn-GoogleSignIn

然后转到团队下拉列表并选择您的团队

在此输入图像描述

  • 每次执行 pod install 后都需要执行此操作,为了永久修复,最好添加 post_install 脚本 (2认同)
  • 确切地说,对于最佳实践,将其添加到 POD 脚本中。 (2认同)