美文网首页
2022-11-02 xcode14 resource_bund

2022-11-02 xcode14 resource_bund

作者: 我是小胡胡123 | 来源:发表于2022-11-01 15:35 被阅读0次

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

但是运行没问题。

相关文章

网友评论

      本文标题:2022-11-02 xcode14 resource_bund

      本文链接:https://www.haomeiwen.com/subject/ccpjtdtx.html