Skip to content

Running flutter run resulting incompatible IPHONEOS_DEPLOYMENT_TARGET version error #1346

Closed as not planned
@huyenltnguyen

Description

@huyenltnguyen

Description

It's very likely that this is an issue on my end, but I'm creating an issue still, in case this happens to other devs.

So I've been trying to setup the repo locally, and:

  • I've got all of the tools and libraries installed, confirmed using the flutter doctor command
  • I started the iOS simulator using open -a Simulator and had the simulator running
  • I cd'ed into mobile-app and ran flutter run
  • I got the following error:
freeCodeCamp-mobile/mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 9.0, but the range of supported deployment target versions is 12.0 to 18.2.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')

I went through some Stackoverflow threads and they suggested adding the following line to the post_install block in Podfile:

config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

I tried that and it did resolve the error. I'm not sure if we should update main with that or I should change something on my end instead, hence this issue 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugIssues that need priority attention. Things which are obviously broken and are reported as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions