XCode14 requires a development team. select a development team in the signing & capabilities editor
2024-06-25 00:01:01  阅读数 4282

Xcode升级到14后,编译报错:

Signing for "xxx" requires a development team. select a development team in the signing & capabilities editor

该错误为Pod库中包含Test的Target,需要设置Team ID

解决方案:

在Podfile中添加如下内容

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"] = "You Team ID"

                end

            end

        end

end


获取Apple开发者团队ID

登录苹果开发者中心. https://developer.apple.com/

Membership


TeamID