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 endend方法三:在Podfile脚本中设置CODE_SIGN_IDENTITY为空来克制报错,这是现在在用的,也是最简单的方法
post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['CODE_SIGN_IDENTITY'] = '' end end endend