简体   繁体   English

Flutter:iOS 构建失败

[英]Flutter: iOS build fails

I have an issue with Flutter.我对 Flutter 有疑问。 I can't run my app on an iOS simulator.我无法在 iOS 模拟器上运行我的应用程序。 I've tried to create a new certificate under the Mac keychain and that didn't help me much.我试图在 Mac 钥匙串下创建一个新证书,但这对我没有多大帮助。 Does anyone know how I can fix this problem?有谁知道我该如何解决这个问题?

(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.

The answer is in your flutter doctor:答案在您的 flutter 医生中:

✗ Flutter plugin not installed; ✗ Flutter 插件未安装; this adds Flutter specific functionality.这增加了 Flutter 特定功能。 ✗ Dart plugin not installed; ✗ Dart 插件未安装; this adds Dart specific functionality.这增加了 Dart 特定功能。

You will need to fix these issues by setting it all up again as shown here: https://flutter.io/setup-macos/您需要通过再次设置来解决这些问题,如下所示: https://flutter.io/setup-macos/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM