Xcode升級(jí)到14后,編譯報(bào)錯(cuò):
Signing for "xxx" requires a development team. select a development team in the signing & capabilities editor
該錯(cuò)誤為Pod庫中包含Test的Target,需要設(shè)置Team ID
解決方案:
在Podfile中添加如下內(nèi)容
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開發(fā)者團(tuán)隊(duì)ID
登錄蘋果開發(fā)者中心.?https://developer.apple.com/
Membership
TeamID