簡體   English   中英

Flutter:iOS 構建失敗

[英]Flutter: iOS build fails

我對 Flutter 有疑問。 我無法在 iOS 模擬器上運行我的應用程序。 我試圖在 Mac 鑰匙串下創建一個新證書,但這對我沒有多大幫助。 有誰知道我該如何解決這個問題?

(base) seroaslan@Seros-MBP Desktop % flutter doctor   
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287, locale da-DK)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.5)
[!] IntelliJ IDEA Ultimate Edition (version 2020.1.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.44.2)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

(base) seroaslan@Seros-MBP tutorial % flutter run             

Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...                                                  

 ├─Assembling Flutter resources...                           2,8s
 └─Compiling, linking and signing...                         3,0s
Xcode build done.                                            9,2s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/seroaslan/Desktop/tutorial/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder
    information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 8.

答案在您的 flutter 醫生中:

✗ Flutter 插件未安裝; 這增加了 Flutter 特定功能。 ✗ Dart 插件未安裝; 這增加了 Dart 特定功能。

您需要通過再次設置來解決這些問題,如下所示: https://flutter.io/setup-macos/

暫無
暫無

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

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