简体   繁体   English

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?

I use a Debian Linux computer as my main development computer for Flutter apps for Android with Android Studio. I use a Debian Linux computer as my main development computer for Flutter apps for Android with Android Studio. When I want to test an app on iOS, I need to pull the Flutter app source code from my source control system (GitLab) on my Apple macOS computer, build, deploy and run from there using Android Studio.当我想在 iOS 上测试应用程序时,我需要从我的 Apple macOS 计算机上的源代码控制系统 (GitLab) 中提取 Flutter 应用程序源代码,使用 ZE84E30B9390CDB646DB6DB2C9AB878 从那里构建、部署和运行。

What I would like to do, is avoid the source control pull step in the process and initiate the iOS build, deploy and run on the Apple computer from the Android Studio on the Linux computer.我想做的是避免过程中的源代码控制拉动步骤,并从 Linux 计算机上的 Android Studio 在 Apple 计算机上启动 iOS 构建、部署和运行。

I consider the build, deploy and execute steps in Android studio as commands.我将 Android 工作室中的构建、部署和执行步骤视为命令。 I believe that those commands can be configured maybe through Gradle configuration files.我相信这些命令可以通过 Gradle 配置文件进行配置。 If so, it should be possible to configure Android Studio and Gradle so that my Android Studio on Linux makes use of a remote Apple computer for the build, deploy and run either through an Xcode server or through an SSH server installed on the Mac. If so, it should be possible to configure Android Studio and Gradle so that my Android Studio on Linux makes use of a remote Apple computer for the build, deploy and run either through an Xcode server or through an SSH server installed on the Mac.

At the moment, when I try a flutter build ios on my Linux machine, I get this expected error message:目前,当我在我的 Linux 机器上尝试flutter build ios时,我收到了这个预期的错误消息:

Building for iOS is only supported on the Mac.

Does anyone have a solution to make this remote?有没有人有解决方案来制作这个遥控器?

I know that Appollo does this for building apps.我知道阿波罗这样做是为了构建应用程序。 It's a python CLI tool that lets you connect to remote Macs.这是一个 python CLI 工具,可让您连接到远程 Mac。 The CLI tool is open source so maybe you can find how they connect to the MacOS machines in their source code: https://github.com/Appollo-CLI/Appollo CLI 工具是开源的,所以也许您可以在其源代码中找到它们如何连接到 MacOS 机器: https://github.com/Appollo-CLI/Appollo

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

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