请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

pod install 报错

用如下podfile:

flutter_application_path = '../flutter_module/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'FlutterHybridiOS' do
  install_all_flutter_pods(flutter_application_path)

  target 'FlutterHybridiOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'FlutterHybridiOSUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

pod install 报错:

(base) danjiang@danjiang-MacBook-Pro FlutterHybirdiOS % pod install
Add `flutter_post_install(installer)` to your Podfile `post_install` block to build Flutter plugins:

post_install do |installer|
  flutter_post_install(installer)
end

[!] Invalid `Podfile` file: Missing `flutter_post_install(installer)` in Podfile `post_install` block.

 #  from /Users/danjiang/CrossPlatform/MyFlutter/flutter_hybird/FlutterHybirdiOS/Podfile:11
 #  -------------------------------------------
 #    # Pods for FlutterHybirdiOS
 >    install_all_flutter_pods(flutter_application_path)
 #  end
 #  -------------------------------------------

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2023-08-15 08:55:26
你新创建一个flutter项目然后参考它的podfile修改下看看
0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号