简体   繁体   English

如何使用 Android Studio 为 flutter 应用程序生成 iOS 构建?

[英]How to generate an iOS build for a flutter app using Android Studio?

I have a Mac but for some complex reasons that is not worth explaining here, I will be not be able to install xCode.我有一台 Mac,但由于一些不值得在这里解释的复杂原因,我将无法安装 xCode。 I have checked the tutorial here , where they provide two options.我在这里查看了教程,他们提供了两个选项。 In both options, XCode is used.在这两个选项中,都使用了 XCode。 My question is: Is it possible to generate a build for iOS on a Mac without using XCode.我的问题是:是否可以在不使用 XCode 的情况下在 Mac 上为 iOS 生成构建。

No, it's not.不,这不对。

What you can do though is use an external tool like appollo which will let you have access to a Mac build machine with XCode installed.你可以做的是使用像appollo这样的外部工具,它可以让你访问安装了 XCode 的 Mac 构建机器。

Then you can generate an IPA like this:然后你可以像这样生成一个IPA:

appollo build start --build-type ad-hoc

Here are some demo videos or Appollo's documentation这是一些演示视频Appollo 的文档

It is not possible to do this in Android Studio.在 Android Studio 中无法执行此操作。 If you don't have a machine with macOS (or are not able to use XCode in your case), you might be able to make a build using a macOS docker image.如果您没有装有 macOS 的机器(或者在您的情况下无法使用 XCode),您也许可以使用 macOS docker映像进行构建。

You can find a macOS docker image (Docker-OSX) here (200k downloads).您可以在此处找到 macOS docker 映像 (Docker-OSX) (20 万次下载)。 On this page, you can also find container images with XCode installed .在此页面上,您还可以找到安装了 XCode 的容器镜像

If you don't want to use the XCode app on your machine (or when using this Docker image), but you do have XCode (and Command Line Tools ) installed - you can also make a build via the terminal using the xcodebuild command: https://developer.apple.com/library/archive/technotes/tn2339/_index.html如果您不想在您的机器上使用 XCode 应用程序(或在使用此 Docker 映像时),但您确实安装了xcodebuild (并且还可以使用命令行工具构建 - 命令行工具https://developer.apple.com/library/archive/technotes/tn2339/_index.html

For more on xcodebuild , see this StackOverflow answer .有关xcodebuild的更多信息,请参阅此StackOverflow 答案

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

相关问题 Flutter - 无法在 Android Studio 上构建 iOS 应用程序 - Flutter - Failed to build iOS app on Android Studio Flutter - iOS 在 Android Studio 中构建失败 - Flutter - iOS build failed in Android Studio Build, deploy and run a Flutter app for iOS from Android Studio on a Linux computer using a remote Mac with an Xcode server or an SSH server? - Build, deploy and run a Flutter app for iOS from Android Studio on a Linux computer using a remote Mac with an Xcode server or an SSH server? 如何使用 Flutter 和 Windows 构建 iOS 应用程序 10 - How to build iOS app using Flutter with Windows 10 如何使用 fastlane 缩短 Flutter iOS 应用程序的构建时间 - How to shorten build time of Flutter iOS app using fastlane 从 android 工作室在 iOS 上运行 flutter 应用程序 - Run flutter app on iOS from android studio Flutter 应用程序:IOS 模拟器未连接到 Android Studio - Flutter app : IOS emulator not connecting to Android Studio 如何使用 Android Studio 在 Flutter 中构建 .apk 和 .ipa? - How to build .apk & .ipa in Flutter, using Android Studio? 如何使用Android Studio解决Flutter iOS错误? - How i solve Flutter iOS Error using Android Studio? 如何从 Flutter 生成 iOS 版本,以便我的客户可以在他们的 iPhone 设备上测试应用程序? - How to generate iOS build from Flutter so my client can test the app in their iPhone device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM