[英]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.