簡體   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. 當我想在 iOS 上測試應用程序時,我需要從我的 Apple macOS 計算機上的源代碼控制系統 (GitLab) 中提取 Flutter 應用程序源代碼,使用 ZE84E30B9390CDB646DB6DB2C9AB878 從那里構建、部署和運行。

我想做的是避免過程中的源代碼控制拉動步驟,並從 Linux 計算機上的 Android Studio 在 Apple 計算機上啟動 iOS 構建、部署和運行。

我將 Android 工作室中的構建、部署和執行步驟視為命令。 我相信這些命令可以通過 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.

目前,當我在我的 Linux 機器上嘗試flutter build ios時,我收到了這個預期的錯誤消息:

Building for iOS is only supported on the Mac.

有沒有人有解決方案來制作這個遙控器?

我知道阿波羅這樣做是為了構建應用程序。 這是一個 python CLI 工具,可讓您連接到遠程 Mac。 CLI 工具是開源的,所以也許您可以在其源代碼中找到它們如何連接到 MacOS 機器: https://github.com/Appollo-CLI/Appollo

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM