Xcode compilation often encounters various problems, which are time-consuming and laborious to deal with, and quite discourage learning. Write down these questions to help yourself and others.
When compiling, I encountered:
There are many solutions on the Internet, which I solved:
When compiling, I encountered:
Solution:
Project -> User-Defined -> Change FLUTTER_ROOT to local flutter SDK path
Thank you, little brother on issues. Can I give you one?
flutter run can run normally in the project directory, but there are still problems in Xcode build.
at this time, you need to manually add FLUTTER_ROOT to user-defined:
After adding it,
you can install it on your mobile phone in Xcode build normally.
after flutter builds IOs, it appears:
after pod install:
Solution:
This is because terminal has no proxy traffic,
Just use gitconfig-global/p/21df7E9A52f
I am clean Xcode
Solution: