升级到xcode14后,项目运行,pod库报错
解决方案
其他解决方案
“Select a development team in the Signing & Capabilities editor.”
几种解决方案如下:
方案1:
Build Settings配置 在Xcode中 选中XX对应的target (in target ‘XX’) 点击Build Settings 中
在User-Defined (用户自定义那一栏) 添加CODE_SIGNING_ALLOWED = NO
关闭对XX的Code签名
方案2:Pod配置CODE_SIGNING_ALLOWED (推荐)
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
3. 方案3:Pod配置DEVELOPMENT_TEAM
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