[!] 无效
Podfile
文件:语法错误,意外的“结束”。
#
od文件:25
# ------------------------------------------
# 结尾
> 结束
#
# ----------------------------------------------------------
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:335:in `rescue in block in from_ruby'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:329:in `block in from_ruby'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `initialize'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `new'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `from_ruby'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:293:in `from_file'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod:25:in `<main>'
运行 pod install 时出错 在 iPhone 16 Pro Max 上启动应用程序时出错。
你好,
有人在 Flutter 移动项目中遇到过此错误吗?
这可能会回答你的问题。 https://stackoverflow.com/a/59405918/8764293
基本上我们正在删除自动生成的 podfile。
然后做
cd ios && pod install