I have an existing Flutter project which has been working fine for two years. But now all of a sudden, when I try to build or run it on iOS, it always gets stuck on Running Xcode build...
.
flutter build ios --debug
Running "flutter pub get" in MyApp... 0.6s
Building org.example.myapp for device (ios)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 36U5A9XK2Z
Running pod install... 1.6s
Running Xcode build...
(This is taking an unexpectedly long time.) ?
Before this would only take 1-2 minutes, and now I've tried waiting up to 2 hours, so obviously something is very wrong. Other existing apps build just fine.
I have tried "the usual suspects":
flutter clean
.
- Delete
~/Library/Developer/XCode/DerivedData
.
- Restart the computer.
- Delete
podfile.lock
and run pod install
again.
- Removed some "difficult" plugins (i.e. everything Firebase-related and all Swift-based plugins).
Nothing seems to help. Same thing happens if I try to run the app from within XCode or IntelliJ. Version info below.
Flutter 1.22.5 ? channel stable ? https://github.com/flutter/flutter.git
Framework ? revision 7891006299 (7 weeks ago) ? 2020-12-10 11:54:40 -0800
Engine ? revision ae90085a84
Tools ? Dart 2.10.4```
XCode 11.1
OSx 10.15.1
question from:
https://stackoverflow.com/questions/65915074/flutter-gets-stuck-on-running-xcode-build-when-building-for-ios 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…