簡體   English   中英

Flutter 在 iOS 模擬器上顯示隨機錯誤,或者在 iOS 模擬器上構建失敗

[英]Flutter shows random error on iOS simulator, or build fails on iOS simulator

我正在構建一個 flutter 項目,它顯示了昨天的隨機問題。

錯誤:

異常:無法獲取 Xcode 項目信息:2022-05-21 11:24:21.526 xcodebuild[59059:315927] 請求但未找到標識符為 Xcode 的擴展點-in com.apple.dt.IDEWatchSupportCore 2022-05-21 11:24:21.527 xcodebuild[59059:315927] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug -in com.apple.dt.IDEWatchSupportCore

我該如何解決這個問題? 我的項目完全停留在這個問題上,並實施了一些隨機解決方案,例如刪除和安裝 CommandLineTools 等。但沒有任何變化。 誰能為此提供解決方案?

flutter 醫生-v output:

[✓] Flutter(通道穩定,3.0.1,在 macOS 12.4 21F79 darwin-arm,語言環境 en-IN) • Flutter 版本 3.0.1 在 /Users/carclenx/developme nt/flutter • 上游存儲庫https://github。 com/flutte r/flutter.git • 框架修訂版 fb57da5f94(32 小時前),2022-05-19 15:50:29 -0700 • 引擎修訂版 caaafc5604 • Dart 版本 2.17.1 • DevTools 版本 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) • Android SDK at /Users/carclenx/Library/A ndroid/sdk • Platform android-32, build-tools 32.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/C ontents/Home/bin/java • Java 版 OpenJDK 運行時環境(構建 11.0.11+0-b60-7772763) • 接受所有 Android 許可證。

[✓] Xcode - 為 iOS 和 macOS (Xcode 13.4) 開發 • Xcode 在 /Applications/Xcode.app/C ontents/Developer • CocoaPods 版本 1.11.3

[✓] Chrome - 為 web 開發 • Chrome at /Applications/Google Chrome.app/Contents/MacOS /Google Chrome

[✓] Android Studio(版本 2021.1) • Android Studio 在 /Applications/Android Studio.app/Contents • Flutter 插件可以從以下位置安裝: https://plugins.jetbrains .com/plugin/9212-flutter • 8819886 插件可以是安裝自: https://plugins.jetbrains.com/plugin/6351-dart • Java 版 OpenJDK 運行時環境(build 11.0.11+0-b60-7772763)

[✓] VS 代碼(版本 1.67.2) • VS 代碼位於 /Applications/VS Code.app/Contents • Flutter 擴展版本 3.41.20220516

[✓] 已連接設備(3 個可用)• iPhone 13 Pro Max(移動設備)• D4210C1C-C70E-48EF-8DD4-0A66830A19EF• ios• com.apple.CoreSimulator.SimRuntime.iOS-15-5(模擬器)• macOS(桌面) ) • macos • darwin-arm64 • macOS 12.4 21F79 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.64

[✓] HTTP 主機可用性 • 所有必需的 HTTP 主機均可用

• 沒有發現問題!

我也遇到了同樣的問題。 嘗試將所有內容(MacOS,Flutter 版本,[已經使用最新的 XCode])更新到最新版本但沒有用。 但是在我的構建設置中將“-lc++”添加到 Other Linker Flags 之后,就成功了。

在此處輸入圖像描述

暫無
暫無

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

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