iOS 项目flutter混合开发集成Swift实现的插件flutter_inappbrowser

在yaml文件中依赖flutter_inappbrowser,cocoaPods执行pod install看到报错:- `flutter_inappbrowser` does not specify a Swift version and none of the targets (`项目名`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.大意就是这个插件在现有的项目中没有指定的Swift版本,

解决方法:设置Targets->Build Settings->Combined(All)->User-Defined->SWIFT_VERSION,设置为4.2等(4.2是指Swift版本号,至于写什么版本,看插件的需求)

你可能感兴趣的:(iOS 项目flutter混合开发集成Swift实现的插件flutter_inappbrowser)