Macos 平台迁移:编译项目时出错

Macos 平台迁移:编译项目时出错,macos,firebase,flutter,dart,Macos,Firebase,Flutter,Dart,几周前,我用flifter开始了一门Firebase课程,当时我在Windows电脑上编程,现在我已经用了几天Mac电脑,学习如何用iOS制作Firebase。然而,我收到了这些错误,我不知道我是否丢失了一个文件、几行代码或者是否有过时的代码。我尝试了一些在互联网上找到的解决方案,比如删除文件pubspec.lock、podfile、podfile.lock,使用pod init和pod install重新安装,但这些解决方案都无法解决问题。我对Swift/Objective-C知之甚少,这个项

几周前,我用flifter开始了一门Firebase课程,当时我在Windows电脑上编程,现在我已经用了几天Mac电脑,学习如何用iOS制作Firebase。然而,我收到了这些错误,我不知道我是否丢失了一个文件、几行代码或者是否有过时的代码。我尝试了一些在互联网上找到的解决方案,比如删除文件pubspec.lock、podfile、podfile.lock,使用pod init和pod install重新安装,但这些解决方案都无法解决问题。我对Swift/Objective-C知之甚少,这个项目是在firebase上连接的(android)

/Users/mobileteam/Desktop/pasta_mary/aikoBot/aiko_bot/ios/Pods/FirebaseCrashlytics/Crashlytics/Shared/FIRCLSFABHost.m100:11: warning: 'UI_USER_INTERFACE_IDIOM' is deprecated: first deprecated in iOS 13.0 - Use -[UIDevice userInterfaceIdiom] directly. [-Wdeprecated-declarations]

  switch (UI_USER_INTERFACE_IDIOM()) {

          ^
In module 'UIKit' imported from /Users/mobileteam/Desktop/pasta_mary/aikoBot/aiko_bot/ios/Pods/FirebaseCrashlytics/Crashlytics/Shared/FIRCLSFABHost.m:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:97:36: note: 'UI_USER_INTERFACE_IDIOM' has been explicitly marked deprecated here

static inline UIUserInterfaceIdiom UI_USER_INTERFACE_IDIOM() API_DEPRECATED("Use -[UIDevice userInterfaceIdiom] directly.", ios(2.0, 13.0), tvos(9.0, 11.0)) {    
                                   ^
1 warning generated.

/Users/mobileteam/Desktop/pasta_mary/aikoBot/aiko_bot/ios/Runner/AppDelegate.swift:14:18: error: cannot override with a stored property 'window'

    override var window: UIWindow?

                 ^

Flutter.FlutterAppDelegate:2:14: note: attempt to override property here

    open var window: UIWindow! { get set }

             ^

note: Using new build system

note: Building targets in parallel

note: Planning build

note: Constructing build description

尝试按照此步骤操作,并确保firebase也已在您的firebase控制台中注册IOS。我已经尝试了此步骤,但它不起作用。