以下内容来自上面的链接, 为防止失效, 这里复制粘贴一遍, 向原作者表示感谢
按照很多网上的方法正常导入flutter 项目
platform :ios, '9.0'
use_frameworks!
target 'NativeDemo' do
flutter_application_path = '../wechat_module/'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)
end
///这个是 podfile 的内容
//run JavaScript 里面的内容
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
之后设置 bitcode No
然后开始使用 cocoapods 导入结果就是导不进 flutter 包
项目报错
修改!!!!!!!!!!!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
inhibit_all_warnings!
flutter_application_path = '../flutter_module'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'NativeDemo' do
install_all_flutter_pods(flutter_application_path)
end
这样导 cocoapods 之后不需要在手动添加run JavaScript 里面的内容,里面自动生成。
以下内容来自上面的链接, 为防止失效, 这里复制粘贴一遍, 向原作者表示感谢
问题:
The specified language version is too high. The highest supported language version is **
解决:
flutter clean
网友评论