flutter 运行pod安装时出错,在iPhone 8上启动应用程序时出错

c86crjj0  于 2023-06-30  发布在  Flutter
关注(0)|答案(2)|浏览(186)

运行我的应用程序后,我得到这个错误:在iPhone 8上启动应用程序时出错。
我已经试过了:取消注解该行

platformform:iOS,9.0

  1. sudo arch -x86_64 gem install ffi
  2. arch -x86_64 pod安装
    任何帮助将不胜感激
1u4esq0p

1u4esq0p1#

1.从项目/ios中删除pods文件夹
1.从project/ios中删除.symlinks
1.删除podfile.lock
1.运行arch -x86_64 pod install
1.那就试试扑跑

r7knjye2

r7knjye22#

请访问您的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

相关问题