Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 颤振吊舱文件问题_File_Flutter_Cocoapods - Fatal编程技术网

File 颤振吊舱文件问题

File 颤振吊舱文件问题,file,flutter,cocoapods,File,Flutter,Cocoapods,看来我的pod文件坏了,我无法在iPhone上安装应用程序。 我收到了错误的pod文件 “正在运行的吊舱安装 退出(sigterm) 异常:运行“pod安装”时出错。我已经尝试过删除旧的pod文件,清理flatter,获取flatter包,并再次为iOS构建,但得到了相同的错误。您可以在下面找到我的pod文件和pubspec.yaml,并且在构建之后pubspec.yaml中没有错误。有没有关于如何修复此错误的建议 Pod文件: # Uncomment this line to define a

看来我的pod文件坏了,我无法在iPhone上安装应用程序。 我收到了错误的pod文件 “正在运行的吊舱安装 退出(sigterm) 异常:运行“pod安装”时出错。我已经尝试过删除旧的pod文件,清理flatter,获取flatter包,并再次为iOS构建,但得到了相同的错误。您可以在下面找到我的pod文件和pubspec.yaml,并且在构建之后pubspec.yaml中没有错误。有没有关于如何修复此错误的建议

Pod文件:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

**Pubspec**
environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  sqflite: any
  intl: ^0.16.1
  percent_indicator: "^1.0.13"
  scoped_model: ^1.0.1
  assets_audio_player: ^1.0.1
  screen: ^0.0.5
  flutter_launcher_icons: "^0.7.0"
  shared_preferences: ^0.5.3+1
  persistent_bottom_nav_bar: any
  custom_navigator: ^0.3.0
  flutter_svg: ^0.18.0
  http: ^0.12.1
  async: ^2.4.1
  stacked: ^1.6.0
  stacked_services: ^0.4.3
  provider: ^4.3.1
  get_it: ^4.0.2
  firebase_core: ^0.4.0+9
  firebase_analytics: ^5.0.2
  firebase_auth: ^0.16.1
  firebase_storage: ^3.1.6
  cloud_firestore: ^0.13.6
  google_maps_flutter: ^0.5.28+1
  map_view: "^0.0.14"
  google_maps_webservice: ^0.0.6
  geolocator: ^5.3.1
  flutter_polyline_points: ^0.2.1
  image_picker: ^0.6.7+2
  cached_network_image: ^2.2.0+1

flutter_icons:
  android: "launcher_icon" 
  ios: true
  image_path: "assets/icons/tomato.png"
  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
      - assets/images/
      - assets/icons/
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
fonts:
    - family: Oxygen
      fonts:
        - asset: fonts/Oxygen-Regular.ttf
        - asset: fonts/Oxygen-Bold.ttf
          weight: 700
        - asset: fonts/Oxygen-Light.ttf
          weight: 300
          
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
#取消对此行的注释以定义项目的全局平台
#平台:ios,“9.0”
#CocoaPods analytics同步发送影响颤振构建延迟的网络统计数据。
ENV['COCOAPODS\u DISABLE\u STATS']='true'
“跑步者”项目{
“调试”=>:调试,
“配置文件”=>:发布,
“Release'=>:Release,
}
发根
已生成的\u xcode\u build\u settings\u path=File.expand\u path(File.join(“…”、“flatter”、“generated.xconfig”)、\u文件
除非文件.exist?(生成的\u xcode\u构建\u设置\u路径)
raise“#{generated_xcode_build_settings_path}必须存在。如果要手动运行pod安装,请确保首先执行flift pub get”
结束
foreach(生成的xcode build settings path)do |行|
匹配=行。匹配(/flatter\u ROOT\=(.*)/)
返回匹配项[1]。如果匹配,则删除
结束
引发“在#{generated_xcode_build_settings_path}中找不到flatter_ROOT。请尝试删除generated.xcconfig,然后运行flatter pub get”
结束
需要文件。展开路径(File.join('packages','flatter\u tools','bin','podheloper'),flatter\u root)
颤振\u ios\u播客文件\u设置
目标“跑步者”做什么
使用你的框架!
使用模块化标题!
flatter_install_all_ios_pods File.dirname(File.realpath(_File_;))
结束
安装后的do安装程序|
installer.pods_project.targets.each do| target|
颤振\u附加\u ios\u构建\u设置(目标)
结束
结束
**公共规范**
环境:
sdk:“>=2.7.0通过以下方式解决:

  • 颤振升级
  • 扑通
  • 拍包
  • rm-Rf ios/Pods
  • rm-Rf ios/.symlinks
  • pod缓存已清理--全部
  • rm-Rf ios/flatter/flatter.framework
  • 颤振构建iOS
  • 解决方法是:

  • 颤振升级
  • 扑通
  • 拍包
  • rm-Rf ios/Pods
  • rm-Rf ios/.symlinks
  • pod缓存已清理--全部
  • rm-Rf ios/flatter/flatter.framework
  • 颤振构建iOS

  • 如果您有M1,可能会有帮助:如果您有M1,可能会有帮助: