Код: Выделить всё
Launching lib/main.dart on iPhone 16 Pro in debug mode...
Running Xcode build...
Xcode build done. 22,0s
Failed to build iOS app
Uncategorized (Xcode): Command CompileC failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
текст
Мне кажется, что он не может найти ни одного работающего устройства, хотя он перечисляет мой симулятор во время работы Flutter Doctor.
Это вывод моего flutter Doctor -v:
Код: Выделить всё
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B91 darwin-arm64, locale de-DE)
• Flutter version 3.27.1 on channel stable at /Users/vincentkorsch/development/flutter
• Framework revision 17025dd882 (3 weeks ago), 2024-12-17 03:23:09 +0900
• Engine revision cb4b5fff73
• Dart version 3.6.0
• DevTools version 2.40.2
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/vincentkorsch/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] Connected device (4 available)
• iPhone 16 Pro (mobile) • 44154DB8-6017-4976-87BA-A8244AE28769 • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1.1 24B91 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.205
[✓] Network resources
• All expected network resources are available.
• No issues found!
Восстановил папку iOS, запустив flutter create .
Переустановил CocoaPods с помощью Sudo Geme Install CocoaPods и запустил cd ios && pod install
Подробнее здесь: https://stackoverflow.com/questions/793 ... -code-in-f