The problem is with the Cocoapods (it’s a pity Apple isn’t rich enough to provide a package management system of their own). It always ends up with something like this:
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`. Error running pod install Error launching application on iPhone 12 Pro Max.
I tried un-commenting this line in Cocoapods file:
platform :ios, '9.0'
That didn’t really change anything. I found somewhere an opinion that this sort of thing happens because the version of Ruby on my machine (and cocoapods depends on Ruby of course) is below a certain threshold. So I spent quite some time trying and finally updating Ruby and brew. But that didn’t help anything.
I created a completely new Flutter project and copied to it all the essential code from the starter. It didn’t run with the same error.
I created a new default project and started adding to it new code step-by-step following the book. It worked out fine for a while but then it broke again, at the stage of adding
card1.dart. Same problem.
Any idea what’s going wrong?