想尝试flutter的桌面webview组件

搜到一个 desktop_webview_window

pubspec.yaml

  desktop_webview_window: ^0.1.5path_provider: ^2.0.8
flutter pub get

报错信息:

Launching lib/main.dart on macOS in debug mode...
Running pod install...
CocoaPods' output:
↳PreparingAnalyzing dependenciesInspecting targets to integrateUsing `ARCHS` setting to build architectures of target `Pods-Runner`: (``)Fetching external sources-> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`-> Fetching podspec for `desktop_webview_window` from `Flutter/ephemeral/.symlinks/plugins/desktop_webview_window/macos`-> Fetching podspec for `path_provider_macos` from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`Resolving dependencies of `Podfile`CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update[!] CocoaPods could not find compatible versions for pod "desktop_webview_window":In Podfile:desktop_webview_window (from `Flutter/ephemeral/.symlinks/plugins/desktop_webview_window/macos`)Specs satisfying the `desktop_webview_window (from `Flutter/ephemeral/.symlinks/plugins/desktop_webview_window/macos`)` dependency were found, but they required a higher minimum deployment target./Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'/usr/local/bin/pod:23:in `load'/usr/local/bin/pod:23:in `<main>'Error output from CocoaPods:
↳/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /Users/qiang/program in PATH, mode 040777Exception: Error running pod install
Specs satisfying the `desktop_webview_window (from `Flutter/ephemeral/.symlinks/plugins/desktop_webview_window/macos`)` dependency were found, but they required a higher minimum deployment target.
sudo chmod 775 路径
Launching lib/main.dart on macOS in debug mode...
Running pod install...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:A986645C-6596-5690-B2B9-1BA7B1F60514 }
{ platform:macOS, name:Any Mac }
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:A986645C-6596-5690-B2B9-1BA7B1F60514 }
{ platform:macOS, name:Any Mac }
/Users/qiang/code/项目代码/p3_jd/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.11, but module 'desktop_webview_window' has a minimum deployment target of macOS 10.12: /Users/qiang/code/项目代码/p3_jd/build/macos/Build/Products/Debug/desktop_webview_window/desktop_webview_window.framework/Modules/desktop_webview_window.swiftmodule/x86_64-apple-macos.swiftmodule
import desktop_webview_window^
/Users/qiang/code/项目代码/p3_jd/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.11, but module 'desktop_webview_window' has a minimum deployment target of macOS 10.12: /Users/qiang/code/项目代码/p3_jd/build/macos/Build/Products/Debug/desktop_webview_window/desktop_webview_window.framework/Modules/desktop_webview_window.swiftmodule/x86_64-apple-macos.swiftmodule
import desktop_webview_window^
/Users/qiang/code/项目代码/p3_jd/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.11, but module 'desktop_webview_window' has a minimum deployment target of macOS 10.12: /Users/qiang/code/项目代码/p3_jd/build/macos/Build/Products/Debug/desktop_webview_window/desktop_webview_window.framework/Modules/desktop_webview_window.swiftmodule/x86_64-apple-macos.swiftmodule
import desktop_webview_window^
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
** BUILD FAILED **Exception: Build process failed

使用Xcode打开项目中macOS下的项目
修改项目的目标平台版本

项目成功运行

compiling for macOS 10.11, but module xxx has a minimum deployment target of macOS 10.12相关推荐

  1. VMware 12安装Mac OS X 10.11解决上网的问题

    VMware 12安装Mac OS X 10.11&解决上网的问题 参考文章: (1)VMware 12安装Mac OS X 10.11&解决上网的问题 (2)https://www. ...

  2. Windows 10/11 中的快速录屏的 5 种方法

    在当今世界,出于各种原因,人们更喜欢录制他们的 PC 屏幕.录制计算机屏幕的功能对于在线学习.录制在线会议的特定亮点或帮助您制作抖音视频至关重要.不管是什么原因,屏幕录制让许多人的生活更轻松.截屏是有 ...

  3. macOS 10.11、macOS 10.12、macOS 10.13、macOS 10.14、macOS 10.15 制作可用于虚拟机安装的 CDR/ISO 系统镜像指导教程

    开篇说明:不论是用 UltraISO,或者是用 MacOS 系统中的 磁盘工具 的格式转换功能进行 原版 DMG ==> CDR/ISO 转换出来的 CDR/ISO 文件只是进行了格式(容器)转 ...

  4. macOS 10.11.* 安装scrapy

    1.安装brew,然后修改brew源为某高校 2.更新python brew install python 3.安装pip 4.安装scrapy,这里肯定会有一个坑,之前在网上看到10.11开启了什么 ...

  5. 更新MacOS 10.11后的root权限问题

    前言 苹果在10.11中提出了Rootless的特性(点此看详情),旨在提升系统安全性,但同时给一些用户操作带来了些许不变(比如手动更改系统默认的Python版本),即使使用root权限也无法对某些目 ...

  6. 七周三次课(1月24日) 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法...

    七周三次课(1月24日) 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法 ====== ...

  7. Mac 10.11系统下cocoaPods安装注意事项

    本文读者需具备的知识:cocoaPods相关概念及常用命令. 今天初次使用cocoaPods(下面我就称其为可可豆好了),为其在OS X 10.11系统下的安装折腾了半天,衰x10^n... 先反省一 ...

  8. idea报错:Error:java: JDK isn‘t specified for module ‘xxx‘

    idea报错:Error:java: JDK isn't specified for module 'xxx' Code_LiYi 2020-07-01 11:54:34  274  收藏 分类专栏: ...

  9. 2017年6月Mac OS 10.11安装文档

    [2017年6月4日] Mac OS X 10.11(EI Capitan)之所以不能用U盘安装,是因为制作为安装盘后的大小接近8GB,而我最大的U盘实际容量只有7.6GB左右,所以只能选择硬盘安装. ...

最新文章

  1. CS131专题-4:拟合(最小二乘、RANSAC、霍夫变换)
  2. java 线程中断(转)
  3. Java修改全文数字,求大神帮我修改下java计算机代码,数字键只有0和8能用
  4. 秒杀系统必须考虑的 3 个技术问题!
  5. HarmonyOS之常用组件WebView的使用
  6. word公式编辑器_论文查重算公式吗 公式怎样避免查重?
  7. jboss eap 7.0_是时候抛弃Java 7 – JBoss EAP 6.4了!
  8. python 神经网络工具_神经网络15分钟入门!使用python从零开始写一个两层神经网络...
  9. hanlp 词频统计_10.HanLP实现k均值--文本聚类
  10. MongoDB中的分页–如何真正避免性能下降?
  11. python 模块路径搜索_Python模块搜索路径问题
  12. django日志使用TimeRotateFileHandler
  13. Python编写API接口
  14. html让一行文字在两行,css单行两行文本自适应问题
  15. LeetCode--Restore IP Addresses
  16. win10任务栏图标空白的解决方案
  17. java实现图片的预览_Java实现图片裁剪预览功能
  18. 我的个人网站:红色石头的机器学习之路
  19. 2020-01-16
  20. 惠普m154a状态页_惠普M154a说明书

热门文章

  1. 小车,测走过的距离,计算走过的时间,stc8a8k
  2. dB、dBm、dBi、dBc,一文带你学习无线信号强度指标
  3. 智慧物联解决方案 50页PPT
  4. [YLANDS][艾兰岛][校长]游戏相关内容汇总
  5. 中国人工智能企业CIMCAI全球港航人工智能领军企业,成熟智慧港航产品行业顶尖,智慧港航智能港口数字化港口自动化中国人工智能企业
  6. linux chown命令_如何在Linux上使用chown命令
  7. 什么是分布式系统(通俗易懂)
  8. 第2课:JSP常用开发模式 (黄菊华Java网站开发系列教程)
  9. C语言中怎样编辑混合运算,用C语言编写一个简单的可以进行四则运算混合运算的计算器!...
  10. Running the evict task with compensationTime 0ms