Я внес много изменений в свое приложение Flutter, включая обновление пакетов до их последних/разрешимых версий.
ПРИМЕЧАНИЕ. Мое приложение отлично компилируется в VScode, когда я запускаю его в
Код: Выделить всё
debug
Код: Выделить всё
flutter run
So, now it's time to archive and send my build to the Apple. I would normally do this by opening up Xcode, archiving my latest build and then using
Код: Выделить всё
Xcode Organiser
Код: Выделить всё
Distribute App
Problem is, the build fails in Xcode before it can archive. I get these errors in Xcode:
Код: Выделить всё
/Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/FLTSharedPreferencesPlugin.h /Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/FLTSharedPreferencesPlugin.h: No such file or directory
Код: Выделить всё
/Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.h /Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.h: No such file or directory
Код: Выделить всё
/Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/ios/Classes/FLTURLLauncherPlugin.h /Users/joshua/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/ios/Classes/FLTURLLauncherPlugin.h: No such file or directory
Код: Выделить всё
flutter clean
Код: Выделить всё
flutter pub get
Код: Выделить всё
/ios/Pods
Код: Выделить всё
/ios/podfile.lock
Код: Выделить всё
pod deintegrate
Код: Выделить всё
pod install --repo-update
Код: Выделить всё
/ios
Код: Выделить всё
rm -rf ~/.pub-cache/hosted/pub.dartlang.org/
Источник: https://stackoverflow.com/questions/781 ... 1-ios-clas