- 报错:[!] InvalidPodfilefile: No such file or directory @ rb_sysopen - ./flutter_yyframework/.ios/Flutter/podhelper.rb.
这是路径不对导致,需要采用绝对路径,别用相对路径(#注意路径和文件夹名字正确无误 最后有一个反斜杠)
- 报错:[!] InvalidPodfilefile: No such file or directory @ rb_sysopen - ./flutter_yyframework/.ios/Flutter/podhelper.rb.
- 报错:[!] Invalid
Podfile
file: undefined local variable or methodflutter_application_path' for #<Pod::Podfile:0x00007fa8983c2588>. 将此方法移至pod末尾 -3. 报错:No podspec found for
Flutterin
flutter_tiktok-master/.ios/Flutter/engine`
因为flutter即是项目又是module,需要将ios文件夹删除,重新pod
- 报错:[!] Invalid
- 安装是提示flutter install错误
flutter_post_install(installer) if defined?(flutter_post_install)
ps: https://flutter.cn/docs/development/add-to-app/ios/project-setup
- 安装是提示flutter install错误
- podfile里的配置可能跟podhelper.rb不兼容
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' # 最低适配iOS 12.0, 这里设置第三方适配最低版本,避免部分警告出现
config.build_settings['SWIFT_VERSION'] = '5.0'
flutter_post_install(installer) if defined?(flutter_post_install)
end
把podhelper.rb里的注释掉就好了
要放在podhelper.rb文件里
installer.pods_project.targets.each do |target|
target.build_configurations.each do |build_configuration|
# flutter_additional_ios_build_settings is in Flutter root podhelper.rb
build_configuration.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
flutter_additional_ios_build_settings(target)
end
- flutter_export_environment.sh文件不存在
http://events.jianshu.io/p/84272990cb2b
参考连接:https://www.imgeek.org/article/825355199
参考连接:https://www.jianshu.com/p/a6f3b1b95548
github: https://github.com/flutter/flutter/issues/84279
https://github.com/flutter/flutter/issues/48038