So I have been trying to get into Flutter recently and I am having issues. When I create a new project and do flutter run
it works just fine. If I completely close
So after a long time if finally figured out how to fix it.
The way I was able to fix is to delete the build
directory in the root of your flutter project. The folder just gets rebuilt without the files causing the problem.
I assume it has something to do with forking the fonts/images I was adding to the project.
Edit (6/4/2019) You can also use flutter clean
and it will also solve the issue. Stated by @Luke Stanyer below!
I had this problem and this is what worked for me.
First off, let's just state the obvious, XCode was written to be the IDE version of the Tardis or maybe the Luggage from Terry Pratchett's Discworld series. It's bigger on the inside than it is on the outside and every time you open it you'll be shown something different.
Now, the root problem for me was that my Apple Developer sign in for my project needed to be refreshed. This is how I did that:
Hopefully this will help some other people.
There can be multiple reasons for this codesign failure.
Go to Keychain Access -> Apple Worldwide Developer Relations Certificate Authority certificate -> Get Info -> (expand) Trust settings
Then for the combo box for "When using this certificate:" make it System Defaults
Run
flutter clean
in your command line.
For sure flutter clean
helps, however, in my case, it was all about setting the Deployment Target to 9.0
Remember to also enable (uncomment or add) this line platform :ios, '9.0'
at the top of your ios/Podfile
file as long as you don't care about iOS versions below 9.0
I have the exact same issue. I've tried multiple IDEs, messing with certificates in Xcode, even reinstalling my operating system (since other people that I work with in the same repository have no issues of this kind).
flutter clean
works for me, but only as a temporary fix.