简体   繁体   中英

Compiling for iOS 9.0, but module 'BSGridCollectionViewLayout' has a minimum deployment target of iOS 10.0

I'm trying to build flutter app on IOS and i get this error:

Compiling for iOS 9.0, but module 'BSGridCollectionViewLayout' has a minimum deployment target of iOS 10.0

Tried: Xcode 12: Compiling for iOS 10.0, but module 'RxSwift' has a minimum deployment target of iOS 12.0 didn't work

目标目标

跑步者目标

How Can I fix this?

Your screen snapshot is showing the deployment target for the app, but you have to look at the deployment target of the dependency. Eg if using Cocoapods:

在此处输入图像描述

By default, it uses the deployment version of the pod. But if you validate your project settings, it will try to change the deployment version, so I would uncheck that option during the settings validation process.

在此处输入图像描述

From your project directory just go to ios > open Podfile then,

platform :ios, '10.0' // Change this 9.0 to 10.0

This will fix your error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM