[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:

Flutter 在ios/profile开启支持swift后出现上面的报错,

platform :ios, '9.0'
use_frameworks!

解决办法: 在ios/profile加上:

pre_install do |installer|
  # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

答案来源:issue

你可能感兴趣的:([!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:)