【问题标题】:DVTAssertions:(null) deviceType from UDID was NULL when -platform calledDVTAssertions:(null) deviceType from UDID was NULL when -platform调用
【发布时间】:2021-05-07 17:17:41
【问题描述】:

我正在用 Flutter 开发一个应用程序。 我尝试构建应用程序,但出现以下错误并且无法运行应用程序。

xcodebuild[80270:554507]  DVTAssertions: Warning in
    /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks...
    Details:  (null) deviceType from <UDID> was NULL when -platform called.
    Object:   <DTDKMobileDeviceToken: <TOKEN>>
    Method:   -platform
    Thread:   <NSThread: <TOKEN>>{number = 2, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.

【问题讨论】:

    标签: ios xcode flutter


    【解决方案1】:

    我目前面临同样的问题。 我无法在 iPhone 13 模拟器上从 IntelliJ 运行我的 Flutter 应用程序。 但是,我可以直接从 XCode 运行应用程序

    我尝试运行 flutter clean,但没有帮助。


    @Olle Kyrychenko 在this post 中建议了以下步骤,以防 Flutter 应用无法在模拟器上运行。

    1. rm ios/Podfile

    升级你的包:

    • pub upgrade
    • pub run

    并更新您的 podfile:

    • cd ios
    • pod update

    然后清理并运行:

    • flutter clean
    • flutter run

    我没有测试以上,因为我有一些目前无法升级的软件包,但这可能是问题的解决方案。

    如果我发现了什么,我会更新我的帖子。

    【讨论】:

      猜你喜欢
      • 2022-08-12
      • 2022-12-02
      • 2016-03-17
      • 1970-01-01
      • 2023-03-31
      • 2020-12-15
      • 1970-01-01
      • 2021-05-05
      • 1970-01-01
      相关资源
      最近更新 更多