Flutter:类 AppleTypeCRetimerRestoreInfoHelper 仅在“flutter run”时在两个错误中实现

chi*_*chi 23 flutter

   objc[88755]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both
    /usr/lib/libauthinstall.dylib (0x1efb3deb0) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a344f8). One of the two will be used. Which one is
    undefined.
    objc[88755]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is
    implemented in both /usr/lib/libauthinstall.dylib (0x1efb3df00) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a34548). One of the two will be used. Which one is
    undefined.
    objc[88755]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in
    both /usr/lib/libauthinstall.dylib (0x1efb3df50) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a34598). One of the two will be used. Which one is
    undefined.
    objc[88755]: Class ATCRTRestoreInfoFTABFile is implemented in both
    /usr/lib/libauthinstall.dylib (0x1efb3dfa0) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a345e8). One of the two will be used. Which one is
    undefined.
    objc[88755]: Class AppleTypeCRetimerFirmwareCopier is implemented in both
    /usr/lib/libauthinstall.dylib (0x1efb3dff0) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a34638). One of the two will be used. Which one is
    undefined.
    objc[88755]: Class ATCRTRestoreInfoFTABSubfile is implemented in both
    /usr/lib/libauthinstall.dylib (0x1efb3e040) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versi
    ons/A/MobileDevice (0x103a34688). One of the two will be used. Which one is
    undefined.
    2022-05-13 00:59:55.256 xcodebuild[88755:414710] Requested but did not find
    extension point with identifier
    Xcode.IDEKit.ExtensionSentinelHostApplications for extension
    Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in
    com.apple.dt.IDEWatchSupportCore
    2022-05-13 00:59:55.256 xcodebuild[88755:414710] Requested but did not find
    extension point with identifier
    Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
    Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of
    plug-in com.apple.dt.IDEWatchSupportCore
    ** BUILD FAILED **
Run Code Online (Sandbox Code Playgroud)

我做了什么

  • 扑干净
  • 删除 DerivedData 文件夹
  • xcode命令工具选择

flutter doctor 来没有任何问题。然而,在 XCode 上运行这个 flutter 项目效果很好。

我只是好奇错误来自哪里?由于我无法通过“flutter run”运行应用程序,因此无法进行任何快速刷新。

小智 0

我也遇到过同样的问题。这不是 xcode 或 Android studio 的问题,而是 Pubspec.yaml 的问题。尝试检查 pubspec.yaml 中是否有任何拼写错误或拼写错误。尽管 pubspec.yaml 上有一个拼写错误,当我执行 pub get 时,它很好,但当我重建时,它被压垮了。当我在 IOS 模拟器上运行时,它没有在 pubspec.yaml 上显示问题,但是当我在 Chrome 上检查该项目时,它显示了问题。 在此输入图像描述