I am trying to run my flutter app on ios device and I am getting this error.
All I had to do is to clear the .pubchache file in flutter sdk file which I downloaded. It worked for me and the build was successfull.