You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter iOS项目运行报错:plist文件缺失及Pod安装失败求助

Flutter iOS项目Pod安装失败:plist文件缺失及Xcode文件列表加载错误

在iOS上运行Flutter项目时遭遇Error running pod install错误,无法启动应用。向上追溯日志发现与plist文件缺失有关,同时在Xcode中直接运行也会出现文件列表加载失败的问题。已尝试Stack Overflow上的相关解决方案,但均未解决问题。

报错详情

  1. Flutter运行时核心报错:
Error running pod install
Error launching application on iPhone 15 Pro Max.
  1. Podfile post-install hook错误:
[!] An error occurred while processing the post-install hook of the Podfile.
[!] The plist file at path `/Users/user1/StudioProjects/flutterproject/ios/Pods/Pods.xcodeproj/project.pbxproj` doesn't exist.
  1. Xcode直接运行时错误:
Unable to load contents of file list: '/Users/user1/StudioProjects/lflutterproject/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources-Debug-input-files.xcfilelist'

环境信息

  • 当前Flutter项目使用版本:3.16.5
  • 本地Flutter环境(执行flutter doctor -v输出):
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-LV)
• Flutter version 3.19.5 on channel stable at /Users/user1/flutterdev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (7 weeks ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/user1/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] Connected device (3 available)
• iPhone 15 Pro Max (mobile) • 3F02384A-7C4B-4D94-8BB0-97810C2C3461 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
• macOS (desktop)            • macos                                • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web)               • chrome                               • web-javascript • Google Chrome 124.0.6367.158

[✓] Network resources
• All expected network resources are available.

• No issues found!
  • 其他环境参数:
    • Ruby版本:3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
    • CocoaPods版本:1.15.2

已确认的运行状态

  • Android设备及模拟器可正常运行该应用
  • 新创建的Flutter iOS项目可正常构建并运行
  • 在当前项目的ios目录下单独执行pod update时,同样会触发plist文件缺失的错误,推测问题与CocoaPods相关

内容的提问来源于stack exchange,提问作者ligaevelina

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 21:06:06