【Flutter】[!] The ‘Pods-Runner‘ target has transitive dependencies that include statically linked bin

[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: 
(/Users/lichuang/Desktop/weixunbang/jingzhunke/ios/Flutter/Flutter.framework)

解决办法一

打开iOS目录下的Podfile,删除掉use_frameworks!
在重新 执行flutter run 即可

解决办法二

在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

你可能感兴趣的:(Flutter,iOS)