Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 660
Serhii D Avatar asked Jan 01 '26 06:01

Serhii D


1 Answers

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

build ios --simulator --no-codesign

like image 112
Serhii D Avatar answered Jan 02 '26 20:01

Serhii D