公司项目配置
先克隆项目到本地
克隆 用sourceTree git clone都OK
但是这里遇到一个问题 就是AndroidStuio 问题 就是项目依赖其他公司库 ,所以需要拉取 但是无法获取你sourceTree 或者 git clone 保存的用户名 和 密码 这个时候 需要删除 缓存。然后androidStudio拉取时候 会提醒你重新输入username passwrod
公司项目打开不能开启vpn 否则失败
flutter put get
执行这个方法 保存到磁盘内(再次之前终端和sourceTree都ok的 但是存贮在钥匙串 至于磁盘没有存 所以执行下面一行代码 至于为什么可以存我也不知道 😄)
git config --global credential.helper store
如果让你输入 那就正常输入即可
运行报错 Cocopods老了
2020年cocopods安装-[!] CDN: trunk Repo update failed
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.2, on macOS 12.4 21F79 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 13.4)
! CocoaPods 1.10.1 out of date (1.11.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin
usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
! Doctor found issues in 1 category.
brew install cocoapods
sudo gem install -n /usr/local/bin cocoapods
Proxy Configuration
Proxy Configuration
! NO_PROXY is not set
export NO_PROXY=localhost,127.0.0.1,::1
source ~/.bash_profile
FVM
No similarly named formulae found.
未找到类似命名的公式。
路径问题
HTTP Host Availability
[!] HTTP Host Availability
******✗** **HTTP host https://maven.google.com/ is not reachable. Reason: An error**
**occurred while checking the HTTP host: Operation timed out**
sudo vi /etc/hosts 保存下面2行 即可
192.30.253.112 github.com
172.217.160.78 maven.google.com
国际化
下载插件
时而开代理 时而关代理
如果克隆自己 库 别开代理 新建窗口 如果开代理 则 新建窗口 复制终端代理
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890