Ios 我的代码出错#导入<;颤振/颤振。h>;

Ios 我的代码出错#导入<;颤振/颤振。h>;,ios,swift,flutter,android-studio,dart,Ios,Swift,Flutter,Android Studio,Dart,这是我的问题:我正在使用pub.dev中的[share package][1],当我尝试构建我的应用程序时,出现以下错误: #import <Flutter/Flutter.h> ^~~~~~~~~~~~~~~~~~~ 1 error generated. In file included from /Users//Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_pre

这是我的问题:我正在使用pub.dev中的[share package][1],当我尝试构建我的应用程序时,出现以下错误:

    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    In file included from /Users//Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.m:5:
    /Users//Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    In file included from /Users/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m:7:
    /Users/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~ ```
#导入
^~~~~~~~~~~~~~~~~~~
生成1个错误。
在/Users//Desktop/flatter/.pub cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.m:5中包含的文件中:
/用户//Desktop/flatter/.pub cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.h:5:9:致命错误:“未找到flatter/flatter.h”文件
#进口
^~~~~~~~~~~~~~~~~~~
生成1个错误。
在/Users/Desktop/flatter/.pub cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m:7中包含的文件中:
/Users/Desktop/flatter/.pub cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.h:5:9:致命错误:未找到“flatter/flatter.h”文件
#进口
^~~~~~~~~~~~~~~~~~~ ```

修复错误:找不到“flatter/flatter.h”文件 #进口 您需要删除或不使用

firebase\u admob

使用

native\u admob\u flatter

admob\u颤振

当您使用firebase时会出现此错误 如果你在podfile中使用类似的代码

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end