![](/img/trans.png)
[英]error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')
[英]could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths
$顫振醫生
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.6 19G2021 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
• No issues found!
當我嘗試在 Xcode 上構建時,我遇到了這個問題:
Showing Recent Messages /ios/Flutter/Release.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths
嘗試運行flutter build ios
然后在 Xcode 中重新運行
打開終端,鍵入以下內容導航到項目:
cd your_file_path
之后通過鍵入以下內容導航到 iOS 文件夾:
cd ios
最后,通過鍵入以下命令實現丟失的 podfile 來解決您的問題:
吊艙初始化
然后,打開新創建的 podfile,按照文件中的說明進行操作(告訴您刪除文件第二行的注釋)。
關閉您的 Flutter 項目,然后重新打開它。
再次運行您的項目。
如果它不起作用,請按照這種方式
導航 ios/Podfile 文件並取消注釋平台:ios, '9.0'(刪除#)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.