美文网首页
升级Xcode14 项目运行报错

升级Xcode14 项目运行报错

作者: WangJing6 | 来源:发表于2022-09-13 15:02 被阅读0次

    问题

    升级到Xcode 14 之后 pod install / pod update 运行项目报错

    xxx requires a development team. Select a development team in the Signing & Capabilities editor
    

    解决方案

    podfile 中的这个脚本修复添加 Team ID它。将您的团队 ID 替换为项目的团队 ID。
    参考 https://stackoverflow.com/questions/72561696/xcode-14-needs-selected-development-team-for-pod-bundles

    post_install do |installer|
      installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
             end
        end
      end
    end
    

    相关文章

      网友评论

          本文标题:升级Xcode14 项目运行报错

          本文链接:https://www.haomeiwen.com/subject/rnkhortx.html