运行我的应用程序后,我收到此错误: 运行 pod install 时出错 在 iPhone 8 上启动应用程序时出错。
我已经尝试过了: 取消注释该行
#platformform:iOS,9.0
和
sudo arch -x86_64 gem install ffi
arch -x86_64 pod 安装
任何帮助将不胜感激
请访问您的 Podfile,您会注意到前几行包含以下信息。
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
向下滚动并注释掉这三行。
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
# target 'RunnerTests' do
# inherit! :search_paths
# end
如果您添加额外的配置,请首先备份您的 info.plist 和 AppDelegate.swift 文件。
从项目/ios 中删除 pods 文件夹
并在您的终端中运行此命令
它工作了。 你可以看到更多修复