Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change minimum deployment iosTarget from Codemagic?

I have developed a Flutter App on Windows. Now I am trying to make the build via codemagic. But I need to change the minimum deployment version for IOS. I get this error while building app with codemagic

Specs satisfying the stripe_payment (from.symlinks/plugins/stripe_payment/ios) dependency were found, but they required a higher minimum deployment target.

like image 822
Hamza Azam Avatar asked Feb 22 '20 22:02

Hamza Azam


People also ask

How do I change my deployment target?

To reconfigure an application to a different deployment targets for an application, navigate to Configure > Configure Deployment Target. In the Update deployment target window, select the taget platform(s) to configure or reconfigure the application.

How do you change the minimum deployment target in Flutter?

Simply make a manual update to the Development target in the Xcode Pods file. It is your pod files deployment target iOS Version, not your project deployment target iOS Version, that is causing the issue; thus, you must update the deployment iOS version for your pods to anything more significant than 8.0 as well.

How do I change the deployment target version in Xcode?

Change deployment targetSelect your app target and go to General tab, under Deployment Info change target to whatever version you want to support.

How do I increase deployment target in Xcode?

Deployment Target refers to the oldest version of iOS that is capable of running your project. To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment(...) Check this answer to add earlier devices support.


1 Answers

You'll have to define the minimum platform ios version in the Podfile file.

platform :ios, '10.0'

Note: the Podfile will be created once you run flutter build ios.

If you don't have a macOS device

You'll have to run flutter build ios on a macOS device. If you don't have such a device you can create a CI build pipeline for your project (on Azure Devops for example), and run the CI build on a macOS agent.

In the pipeline you have to add a step that uploads the Podfile to an artifact, so you can download that artifact and add the Podfile to your sources.

Note: here you'll find a simple CI/CD build example for building your Flutter app for IOS and Android without the need for a macOS device.

like image 184
Floris Devreese Avatar answered Oct 18 '22 00:10

Floris Devreese