Flutter起步的一些坑

Flutter安装过程中遇到的问题:

- brew install --HEAD usbmuxd
- ==> Cloning https://git.sukimashita.com/libusbmuxd.git
Cloning into '/Users/yimo/Library/Caches/Homebrew/usbmuxd--git'...
fatal: unable to access 'https://git.sukimashita.com/libusbmuxd.git/': Could not resolve host: git.sukimashita.com
Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "usbmuxd"
Failure while executing; `git clone --branch master https://git.sukimashita.com/libusbmuxd.git /Users/yimo/Library/Caches/Homebrew/usbmuxd--git` exited with 128. Here's the output:
Cloning into '/Users/yimo/Library/Caches/Homebrew/usbmuxd--git'...
fatal: unable to access 'https://git.sukimashita.com/libusbmuxd.git/': Could not resolve host: git.sukimashita.com

- 解决:git config --global http.sslVerify false
https://www.jianshu.com/p/bf8b9d9a660e
- brew reinstall ios-deploy
安装完Flutter doctor仍然报错:ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy

- 执行:brew upgrade ios-deploy
- 又报错:ios-deploy 1.9.4 already installed

执行:
brew link --overwrite ios-deploy
brew link --overwrite --dry-run ios-deploy
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.15 19A487m, locale
    zh-Hans-CN)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information

https://github.com/flutter/flutter/issues/22598

https://github.com/flutter/flutter/wiki/Supporting-legacy-platforms#building-armv7-ios--armeabi-v7a-android-with-xcode10

上面的一点说法是:
去苹果官网下载9.x版本的Xcode,
获取MacOSX10.13.sdk文件,移到/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs目录下

不过这个太麻烦的,Xcode下载下这么大
有人整理了这些sdk可以直接下载:https://github.com/phracker/MacOSX-SDKs/releases

// 还有很多其他的说法

---> 实际上并没有解决,官网上的方法也试了很多种,都没有解决
---> 因为我这是10.15 mac的测试版(为了体验下swiftUI升级的),还有说是缺失了lib32stdc++6文件,据说futter还没兼容到该版本的一些改动。
---> 但是,对于初学者的影响较少,flutter的demo之类的都是能跑起来的,看社区的反馈好像到后面集成阶段会有些问题。

– 待续…后续再补充遇到的问题

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值