Skip to content

AngelDev2343/Flutter-iOS-Without-macOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

🍎 Flutter iOS Testing — Without macOS / Sin macOS

Normally, building an installable .ipa for iOS requires a Mac and an Apple Developer Program license. This tutorial covers alternatives using simulators and virtual environments, ideal when those requirements aren't available.

Note: This assumes you already have a stable Flutter app in a GitHub repository.


Available Methods

# Method Difficulty Physical Device?
1 Virtual iPhone (emulator) 🟢 Easy No
2 Android emulated on real iPhone 🟡 Medium Yes (via browser)
3 Real IPA on iPhone (temporary, 7 days) 🔴 Hard Yes

Method 1: Virtual iPhone (Emulator)

1.1 — Create an Appetize.io account

  1. Go to https://appetize.io/
  2. Click Log InLogin with GitHub
  3. Sign in with your GitHub account

1.2 — Build the app for simulator in Codemagic

  1. Go to https://codemagic.io/start/

  2. Click the GitHub logo and sign in

    GitHub login

  3. Select Get Started

    Get Started

  4. Choose GitHub and click Authorize Codemagic
    (Wait ~15 seconds, close the extra window, and reload)

  5. Re-authorize if prompted

  6. Select your app's repository from the list

    Select repository

  7. On the next screen, check iOS only

    Check iOS

  8. Scroll to the Build section → under Build arguments (iOS), enter: --simulator

    Build arguments

  9. Click Save changes (green button, top-right corner)

    Save changes

  10. Click Start your first build

    Start first build

  11. Click Start new build (takes ~5 minutes)

    Start new build

  12. Once done, download the Runner.app.zip file

    Download Runner.app.zip

1.3 — Upload the app to Appetize

  1. Go to https://appetize.io/apps

  2. Click Upload App

    Upload App

  3. Click Select A File and select your Runner.app.zip

    Select A File

  4. Click Start and configure the virtual device (use the recommended settings shown on screen)

    Configure device

  5. Click Tap to Start

    Tap to Start

  6. Your app will be running on a virtual iOS device!

    App running


Method 2: Emulate Android on a Real iPhone

Requirement: Your app must be compiled as an .apk.
Not sure how? → See: Build APK

  1. Go to https://appetize.io/apps/

  2. Click Upload App

    Upload App

  3. Click Select A File → select your APK

    Select APK

  4. Click Share App

    Share App

  5. Copy the Embed URL using the icon

    Embed URL

  6. Send that link to your iPhone (via WhatsApp or any other method)

  7. On the iPhone, install Fullmode: Minimal Browser from the App Store

  8. Enter the Embed URL when prompted (adjust zoom to fill the screen)

  9. Tap Tap to Start — your Android app will run on your iPhone

    Result


Method 3: Install a Real IPA on iPhone (Temporary)

⚠️ NOT RECOMMENDED if you only have Windows.
The installation expires after 7 days and requires Linux (Fedora/RPM).

3.1 — Build in Codemagic

  1. Go to https://codemagic.io/start/

  2. Click the GitHub logo and sign in

    GitHub login

  3. Select Get Started

    Get Started

  4. Choose GitHub and click Authorize Codemagic
    (Wait ~15 seconds, close the extra window, and reload)

  5. Re-authorize if prompted

  6. Select your app's repository from the list

    Select repository

  7. On the next screen, check iOS only

    Check iOS

  8. Scroll to the Build section → under Mode, set it to Release

    Save changes

  9. Click Save changes (green button, top-right corner)

  10. Click Start your first build

    Start first build

  11. Click Start new build (takes ~5 minutes)

    Start new build

  12. Once done, download the Runner.app.zip file

    Download Runner.app.zip

3.2 — Convert .app.zip to .ipa

  1. Download the conversion script: convert_appzip_to_ipa.bat
  2. Open a terminal and run:
    cd %USERPROFILE%\Downloads
    convert_appzip_to_ipa.bat Runner.app.zip

3.3 — Install the IPA on the iPhone

You'll need a computer or VM running Fedora Linux (or a DNF/RPM-compatible distro).
Follow the detailed instructions here: Install IPA

Note: This step is done from the Linux terminal.


📦 Build APK

  1. Open your favorite IDE (VS Code, Android Studio, etc.)
  2. Open your Flutter project folder
  3. Open a terminal and run:
    flutter doctor
  4. Make sure Android Toolchain shows ✅ OK
  5. Build the APK:
    flutter build apk --debug
    (Takes ~15 minutes. The terminal will show the output file path when done)

🧪 Probar apps de Flutter en iOS — Sin macOS

Normalmente, crear un .ipa instalable para iOS requiere una Mac y una licencia del Apple Developer Program. Este tutorial cubre alternativas usando simuladores y entornos virtuales, ideales cuando no se cuenta con esos requisitos.

Nota: Se asume que ya tienes una app Flutter estable en un repositorio de GitHub.


Métodos disponibles

# Método Dificultad ¿Dispositivo físico?
1 iPhone virtual (emulador) 🟢 Fácil No
2 Android emulado en iPhone real 🟡 Medio Sí (vía browser)
3 IPA real en iPhone (temporal, 7 días) 🔴 Difícil

Método 1: iPhone virtual (Emulador)

1.1 — Crear cuenta en Appetize.io

  1. Ve a https://appetize.io/
  2. Clic en Log InLogin with GitHub
  3. Inicia sesión con tu cuenta de GitHub

1.2 — Compilar la app para simulador en Codemagic

  1. Ve a https://codemagic.io/start/

  2. Clic en el logo de GitHub e inicia sesión

    GitHub login

  3. Selecciona Get Started

    Get Started

  4. Elige GitHub y clic en Authorize Codemagic
    (Espera ~15 segundos, cierra la ventana extra y recarga)

  5. Autoriza nuevamente si se solicita

  6. Selecciona el repositorio de tu app en la lista

    Seleccionar repositorio

  7. En la siguiente pantalla, marca únicamente iOS

    Marcar iOS

  8. Desplázate a la sección Build → en Build arguments (iOS) escribe: --simulator

    Build arguments

  9. Clic en Save changes (botón verde, esquina superior derecha)

    Save changes

  10. Clic en Start your first build

    Start first build

  11. Clic en Start new build (tarda ~5 minutos)

    Start new build

  12. Al finalizar, descarga el archivo Runner.app.zip

    Descargar Runner.app.zip

1.3 — Cargar la app en Appetize

  1. Ve a https://appetize.io/apps

  2. Clic en Upload App

    Upload App

  3. Clic en Select A File y selecciona tu Runner.app.zip

    Select A File

  4. Clic en Start y configura el dispositivo virtual (usa los valores recomendados en pantalla)

    Configurar dispositivo

  5. Clic en Tap to Start

    Tap to Start

  6. ¡Tu app estará corriendo en iOS virtual!

    App corriendo


Método 2: Emular Android en iPhone real

Requisito: Tener la app compilada como .apk.
¿No sabes cómo? → Ver sección: Compilar APK

  1. Ve a https://appetize.io/apps/

  2. Clic en Upload App

    Upload App

  3. Clic en Select A File → selecciona tu APK

    Select APK

  4. Clic en Share App

    Share App

  5. Copia el Embed URL con el ícono

    Embed URL

  6. Envía ese link a tu iPhone (por WhatsApp u otro medio)

  7. En el iPhone, instala Fullmode: Minimal Browser desde la App Store

  8. Ingresa el Embed URL cuando la app lo solicite (ajusta el zoom para pantalla completa)

  9. Tap en Tap to Start — la app Android correrá en tu iPhone

    Resultado


Método 3: Instalar IPA real en iPhone (temporal)

⚠️ NO RECOMENDADO si solo tienes Windows.
La instalación expira en 7 días y requiere Linux (Fedora/RPM).

3.1 — Compilar en Codemagic

  1. Ve a https://codemagic.io/start/

  2. Clic en el logo de GitHub e inicia sesión

    GitHub login

  3. Selecciona Get Started

    Get Started

  4. Elige GitHub y clic en Authorize Codemagic
    (Espera ~15 segundos, cierra la ventana extra y recarga)

  5. Autoriza nuevamente si se solicita

  6. Selecciona el repositorio de tu app en la lista

    Seleccionar repositorio

  7. En la siguiente pantalla, marca únicamente iOS

    Marcar iOS

  8. Desplázate a la sección Build → en Mode, selecciona Release

    Save changes

  9. Clic en Save changes (botón verde, esquina superior derecha)

  10. Clic en Start your first build

    Start first build

  11. Clic en Start new build (tarda ~5 minutos)

    Start new build

  12. Al finalizar, descarga el archivo Runner.app.zip

    Descargar Runner.app.zip

3.2 — Convertir .app.zip a .ipa

  1. Descarga el script de conversión: convert_appzip_to_ipa.bat
  2. Abre una terminal y ejecuta:
    cd %USERPROFILE%\Downloads
    convert_appzip_to_ipa.bat Runner.app.zip

3.3 — Instalar el IPA en el iPhone

Necesitas una computadora o VM con Fedora Linux (o distro compatible con DNF/RPM).
Sigue las instrucciones detalladas aquí: Instalar IPA

Nota: Este proceso se realiza desde la terminal de Linux.


📦 Compilar APK

  1. Abre tu IDE favorito (VS Code, Android Studio, etc.)
  2. Abre la carpeta de tu proyecto Flutter
  3. Abre una terminal y ejecuta:
    flutter doctor
  4. Verifica que Android Toolchain aparezca como ✅ OK
  5. Compila el APK:
    flutter build apk --debug
    (Tarda ~15 minutos. Al finalizar, la terminal mostrará la ruta del archivo generado)

About

Install Flutter iOS apps from Linux or Windows without a Mac.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors