简体   繁体   English

Flutter ios 未内置在 xcode

[英]Flutter ios not build in xcode

Android - app run successfully Android - 应用程序运行成功

IOS - Using Real device: android studio app run successfully but not run in Xcode IOS - 使用真实设备:android 工作室应用程序运行成功,但在 Xcode 中未运行

- Simulator: not working in android studio or Xcode - 模拟器:在 android 工作室或 Xcode 中不工作

*** BUILD FAILED **
Could not build the application for the simulator.
Error launching application on iPhone 12.

Mac configuration deatils Mac 配置详情

Xcode error run into real device Xcode 错误跑进真机

Android studio full error when using simulator Android studio full 使用模拟器报错

version using in my project:在我的项目中使用的版本:

[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-IN) • Flutter version 2.5.3 at /Users/sunilpurushotham/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700 • Engine revision d3ea636dc5 • Dart version 2.14.4 [✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-IN) • Flutter version 2.5.3 at /Users/sunilpurushotham/development/flutter • Upstream repository https://github .com/flutter/flutter.git • 框架修订版 18116933e7(7 周前),2021-10-15 10:46:35 -0700 • 引擎修订版 d3ea636dc5 • Z35900D987289A83AF1011D18A1ZF745 版本。

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/sunilpurushotham/Library/Android/sdk • Platform android-31, build-tools 31.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted. [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/sunilpurushotham/Library/Android/sdk • Platform android-31, build-tools 31.0.0 • Java binary at: / Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java 版本 OpenJDK 运行时环境(内部版本 11.0.10+0-b96-7249189) • 接受所有 Android 许可证。

[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 13.1, Build version 13A1030d • CocoaPods version 1.11.2 [✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 13.1, Build version 13A1030d • CocoaPods version 1.11.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Chrome - 为 web 开发 • Chrome 位于 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3) • 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 11.0.10+0-b96-7249189) [✓] Android Studio (version 2020.3) • 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安装位置: https://plugins.jetbrains.com/plugin/6351-dart • Java 版本 OpenJDK 运行时环境(构建 11.0.10+0-b96-7249189)

[✓] Connected device (3 available) • iPhone (mobile) • 00008020-000E0C121A68002E • ios • iOS 15.1 19B74 • iPhone 12 (mobile) • E148689E-2CD6-489C-BB16-36DC8CD56EE0 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator) • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.55 [✓] Connected device (3 available) • iPhone (mobile) • 00008020-000E0C121A68002E • ios • iOS 15.1 19B74 • iPhone 12 (mobile) • E148689E-2CD6-489C-BB16-36DC8CD56EE0 • ios • com.apple.CoreSimulator.SimRuntime .iOS-14-4(模拟器) • Chrome(网络) • chrome • web-javascript • Google Chrome 96.0.4664.55

Do Following things:做以下事情:

  1. flutter clean
  2. fluter pub get
  3. cd ios
  4. pod install
  5. pod update
  6. now try to launch on real device现在尝试在真实设备上启动

before that remove derived data from preferences of xcode .在此之前从xcode的首选项中删除derived data

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

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