Search code examples
iosflutterios-simulator

Flutter build for iOS simulator


I'm trying to test flutter app using Azure DevOps and Appium. My CI/CD pipeline contains 2 major jobs - build app & run tests. First job creates .app file and passes it as an artifact to the second job. To achieve this I have to launch iOS simulator and build with flutter run. Those actions take significant amount of time and I'm wondering is there a way to build iOS app without a need to create simulator.

I've tried flutter build ios --debug --no-codesign but the resulting app is incompatible with the iOS simulator.


Solution

  • In case if someone finds this question by googling. The solution was replacing the --debug flag with --simulator flag:

    build ios --simulator --no-codesign