xcode14, cocoapods版本1.11.3 运行pod 报错:
Showing Recent Errors Only
/Pods/Pods.xcodeproj Signing for "image_selector-flutter_image_selector_bundle" requires a development team. Select a development team in the Signing & Capabilities editor.
s.resource_bundles = {
'flutter_image_selector_bundle' => ['Classes/**/*.{xcassets}']
}
image.png
解决方法:
https://github.com/CocoaPods/CocoaPods/issues/11402
post_install do |pi|
resource_bundles_sign(pi)
end
# 解决xcode14 bundle 签名报错问题
def resource_bundles_sign(pod_installer)
return unless pod_installer
pod_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
虽然还是报错:
image.png
但是运行没问题。
网友评论