I had the same issue. I saw the same error when I ran flutter build ios
.
The error message was displayed red color on my VS code terminal, but it was kind of misleading. I found it was not the main issue.
The actual issue should be on the following error section.
So, please run flutter build ios --verbose
and read the output carefully.
In my situation, there were other issues of the failure of flutter build ios
. The issues were like forget to put in GoogleService-Info.plist
or iOS target version is less than the requirement of flutter packages.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…