致命错误:';颤振/颤振.h';运行iOS时未找到文件

致命错误:';颤振/颤振.h';运行iOS时未找到文件,ios,xcode,flutter,dart,Ios,Xcode,Flutter,Dart,我有一个flutter应用程序,它只使用android端。现在我想在iPad上运行它,但它会抛出以下错误: Error output from Xcode build: ↳ 2021-04-19 11:31:26.233 xcodebuild[21793:154600] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDev

我有一个flutter应用程序,它只使用android端。现在我想在iPad上运行它,但它会抛出以下错误:

Error output from Xcode build:
↳
    2021-04-19 11:31:26.233 xcodebuild[21793:154600]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
    Details:  (null) deviceType from 00008101-00126D441E38001E was NULL when -platform called.
    Object:   <DTDKMobileDeviceToken: 0x7f8196cb0f70>
    Method:   -platform
    Thread:   <NSThread: 0x7f8196c6dc80>{number = 8, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
    2021-04-19 11:31:26.651 xcodebuild[21793:154569]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
    Details:  (null) deviceType from 00008101-00126D441E38001E was NULL when -platform called.
    Object:   <DTDKMobileDeviceToken: 0x7f8196cb0f70>
    Method:   -platform
    Thread:   <NSThread: 0x7f8196a38370>{number = 5, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
    2021-04-19 11:31:26.835 xcodebuild[21793:154569]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
    Details:  (null) deviceType from 00008101-00126D441E38001E was NULL when -platform called.
    Object:   <DTDKMobileDeviceToken: 0x7f8196cb0f70>
    Method:   -platform
    Thread:   <NSThread: 0x7f8196a38370>{number = 5, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **


Xcode's output:
↳
    In file included from /Users/interno/Documents/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.m:7:
    /Users/interno/Documents/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the precompiled application for the device.

Xcode生成的错误输出: ↳ 2021-04-19 11:31:26.233 xcodebuild[21793:154600]dvtasserions:Warning in/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/dtdkdremotedevicedata.m:371 详细信息:(null)当调用-platform时,来自00008101-00126D441E3801E的deviceType为null。 对象: 方法:-平台 线程:{number=8,name=(null)} 请在https://feedbackassistant.apple.com 使用此警告消息和您可以提供的任何有用信息。 2021-04-19 11:31:26.651 xcodebuild[21793:154569]dvtasserions:Warning in/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/dtdkdremotedevicedata.m:371 详细信息:(null)当调用-platform时,来自00008101-00126D441E3801E的deviceType为null。 对象: 方法:-平台 线程:{number=5,name=(null)} 请在https://feedbackassistant.apple.com 使用此警告消息和您可以提供的任何有用信息。 2021-04-19 11:31:26.835 xcodebuild[21793:154569]dvtasserions:Warning in/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/dtdkdremotedevicedata.m:371 详细信息:(null)当调用-platform时,来自00008101-00126D441E3801E的deviceType为null。 对象: 方法:-平台 线程:{number=5,name=(null)} 请在https://feedbackassistant.apple.com 使用此警告消息和您可以提供的任何有用信息。 **构建失败** Xcode的输出: ↳ 文件包括在/Users/interno/Documents/flattersdk/flatter/.pub cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.m:7: /Users/interno/Documents/flatterSDK/flatterSDK/flatter/.pub cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.h:5:9:致命错误:未找到“flatter/flatter.h”文件 #进口 ^~~~~~~~~~~~~~~~~~~ 生成1个错误。 命令CompileSwift失败,退出代码为非零 命令CompileSwift失败,退出代码为非零 注意:使用新的构建系统 注:并行构建目标 注:规划建造 注意:构建构建描述 无法为设备生成预编译的应用程序。 我已经尝试过的事情:

  • 跑得干干净净
  • 吊舱安装
  • 吊舱更新
  • 删除“iOS”文件夹并运行“颤振创建”

我要怎么做才能修复它?

你应该去
/Users/interno/Documents/flattersdk/flatter/.pub cache/hosted/pub.dartlang.org/
删除文件夹url\u启动器并运行
flatter pub dev