Program
设置flutter的开发环境
Post on: 2024-7-31
Last edited: 2024-8-1
Views
Flutter
J-World
Home
Movie Quotes
Javier’s Rear Window
Magic Painting
Javier’s Chatgpt
About
  • archives
  • categories
  • tags
J
Article
24
Category
3
Tags
19
Home
Movie Quotes
Javier’s Rear Window
Magic Painting
Javier’s Chatgpt
About
archives
categories
tags
password
AI summary
type
status
date
summary
tags
icon
comment
slug
category
最近在新电脑上(arm macbook)配置flutter的时候出现了一个问题,flutter doctor提示cocaspad未安装,去官网安装的时候又提示ruby版本有问题,装了ruby后flutter doctor不再报错,但是运行项目的时候抱错Error running pod install.
去github的ruby搜索相关问题,应该是ruby下载的问题。所以按照下面教程重新安装ruby:
The fastest and easiest way to install Ruby on a Mac in 2024
The most complete and up-to-date step-by-step article for properly setting up Ruby on a Mac in 2024. Stop struggling with Ruby!
The fastest and easiest way to install Ruby on a Mac in 2024
https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#configure-your-shell
The fastest and easiest way to install Ruby on a Mac in 2024
注意Searching for inspections failed: undefined method `map' for nil:NilClass 报错 往往是因为使用了系统ruby,检测方法是pod env,看是否使用了上面下载的ruby版本。
都ok后可以cd到./ios里 pod install,如果提示ruby版本xxx,则需要手动修改.ruby-version里的版本号。
最后跑main.dart如果pod install成功,但是依旧报错,可能是ios虚拟机连接的问题。手动flutter run -d ios即可。
 
 
  • Author:J
  • URL:j-world.xyz/program/d7cf454b-585e-4508-8119-c35f12342ee5
  • Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
IP/DNS/WebRTC,用户识别,谷歌验证上原良司の遺書
Loading...
J
J
Try to make some meanings
Article
24
Category
3
Tags
19
Latest posts
在消费社会中寻找疼痛:《搏击俱乐部》与马尔库塞的异化理论
在消费社会中寻找疼痛:《搏击俱乐部》与马尔库塞的异化理论
2026-7-14
资本全球化之后:劳资动态平衡为何失灵
资本全球化之后:劳资动态平衡为何失灵
2026-7-13
全球化为何退潮:从效率优先到安全与公平
全球化为何退潮:从效率优先到安全与公平
2026-7-13
低人权优势与制度套利:全球化的隐蔽成本
低人权优势与制度套利:全球化的隐蔽成本
2026-7-13
理解全球化与不平等:Polanyi、Rodrik 与 Piketty
理解全球化与不平等:Polanyi、Rodrik 与 Piketty
2026-7-13
农耕帝国与海洋商业:两种秩序如何彼此误解
农耕帝国与海洋商业:两种秩序如何彼此误解
2026-7-13
2024-2026 J

J-World | Try to make some meanings

Powered by NotionNext 4.7.0.