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