缺少平台 android 所需的内容重新安装 xcode
Posted
技术标签:
【中文标题】缺少平台 android 所需的内容重新安装 xcode【英文标题】:Required content for platform android is missing reinstall xcode 【发布时间】:2020-12-18 23:59:22 【问题描述】:我有一个要构建 ios 的颤振应用程序。我刚为此买了一台 MacBook Air,OS Catalina v. 10.15.6。自本周以来,我一直在努力从网站或 App Store 安装 Xcode,当我打开 Xcode 时仍然收到错误消息:缺少平台 android 所需的内容。请重新安装 Xcode
我已经重新安装了 3 次 Xcode,所以这不是问题。
当我运行flutter doctor
时,我首先有一个对话框说:git 命令需要命令行开发工具....这是终端中的输出:
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
✗ Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 11.6)
✗ Xcode requires additional components to be installed in order to run.
Launch Xcode and install additional required components when prompted or
run:
sudo xcodebuild -runFirstLaunch
✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with
is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods. For more info, see
https://github.com/flutter/flutter/issues/14293.
To re-install CocoaPods, run:
sudo gem install cocoapods
[✓] Android Studio (version 4.0)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
请问有人知道这里出了什么问题吗?
【问题讨论】:
【参考方案1】:尝试根据这个设置xcode:https://flutter.dev/docs/get-started/install/macos#ios-setup
【讨论】:
当您尝试从 Xcode 运行您的应用程序时会发生什么? 一个对话框说:平台 android 所需的内容丢失。请重新安装 Xcode...看看我帖子所附的图片以上是关于缺少平台 android 所需的内容重新安装 xcode的主要内容,如果未能解决你的问题,请参考以下文章
关于解决“用系统U盘安装win7却提示‘缺少所需的CD/DVD驱动器设备驱动程序’”的问题
Kotlin 多平台移动 - 无法运行 iOS 项目 - 缺少此目标所需的一个或多个架构
缺少 FusedLocationProviderClient.getLastLocation 所需的权限:android.permission.ACCESS_COARSE_LOCATION
PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展。 4
您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展
Wordpress localhost 安装错误 - 您的 PHP 安装似乎缺少 WordPress 所需的 MySQL 扩展