升级Xcode14 项目运行报错

问题

升级到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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容