簡體   English   中英

在搜索路徑中找不到包含的文件“Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig”

[英]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 中重新運行

  1. 打開終端,鍵入以下內容導航到項目:

    cd your_file_path

  2. 之后通過鍵入以下內容導航到 iOS 文件夾:

    cd ios

  3. 最后,通過鍵入以下命令實現丟失的 podfile 來解決您的問題:

    吊艙初始化

  4. 然后,打開新創建的 podfile,按照文件中的說明進行操作(告訴您刪除文件第二行的注釋)。

  5. 關閉您的 Flutter 項目,然后重新打開它。

  6. 再次運行您的項目。

如果它不起作用,請按照這種方式

導航 ios/Podfile 文件並取消注釋平台:ios, '9.0'(刪除#)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM