如题,flutter混合开发项目中,显示Podfile文件执行
load File.join('.../flutter_module’, '.ios', 'Flutter', 'podhelper.rb')
命令时报错,其实这个命令是flutter混合开发ios侧生成framework产物的命令。相信搞flutter混合开发的同学都不会陌生。
其中,flutter_module就是你的flutter项目目录。
同时,xcode还报错说找不到头文件:
Flutter/Flutter.h file not found
解决方法:
1、flutte_module目录执行:flutter clean
2、flutter_module目录执行:flutter pub upgrade
3、宿主项目中,直接pod install,(有可能会在pod之前执行pod repo update等)。
完结。