Check the error details
flutter run --verbose
Reinstall pod files
rm -rf ios/Pods
rm -rf ios/.symlinks
rm -rf ios/Flutter/Flutter.framework
rm -rf ios/Flutter/Flutter.podspec
Change flutter channel
flutter channel stable
Clear Xcode cache
This is the solution about Xcode freeze.
rm -rf ~/Library/Caches/com.apple.dt.Xcode
Remoce Derived Data
rm -rf ~/Library/Developer/Xcode/DerivedData/
Remove cache by Xcode Tools
Remove the app and settings on simulator
xxcrun simctl erase all
Remove CocoaPods cache
pod cache clean --all
Update Cocoapods itself
If you need sudo permission, please use sudo.
[sudo] gem update cocoapods
If you use old gem version, please update gem.
gem update --system