Hello there guys, I’m running into an error, when I try to build my flutter app using xcode, I’m trying to upgrade the ios version from 8 to 12, but I’m getting “the dependencies are outdated error” how do I fix this. I’m really new to flutter. Thanks in advance
Hi Speednation,
Query 1: How do I fix this Flutter dependencies error?
We hope the following steps helps you to clear the dependencies outdated error.
Open Terminal and navigate to the root directory of your Flutter project.
Run the command "flutter pub upgrade" to update the dependencies of your project.
After updating the dependencies, run the command "flutter pub get" to download and install the updated dependencies.
Open your Flutter project in Xcode.
Clean the project by selecting Product > Clean Build Folder from the Xcode menu.
Rebuild the project by selecting Product > Build from the Xcode menu.
If you encounter any errors, try resolving them by updating the version numbers of the packages in your pubspec.yaml file.
Repeat the above steps until your project builds successfully in Xcode.
Note: while Xcode is not directly involved in the dependency update process, it is important to clean and rebuild the project in Xcode after updating the dependencies to ensure that the updated dependencies are used in the build process.
And also, we shared the flutter upgrading details below:
https://docs.flutter.dev/development/tools/sdk/upgrading#upgrading-packages
Regards,
Natrayan
Thanks tried that and it worked but I,m now running into this now
I'm getting this error below warning in my Xcode 13.0
The iOS Simulator deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions
is 9.0 to 15.0.99.
My deployment target is set @15.0
Any Ideas?
Hi Speednation,
To resolve this, please delete the iOS folder in your project directory and then run the `flutter create .` command in the terminal, it will create an iOS folder with the latest configuration file, and the issue will be resolved.
Regards,
Yuvaraj.
Thanks will definitely try it
Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.