在flutter的工程中引入第三方插件后选择模拟器运行(我是在安卓模拟器可以运行,但是iOS模拟器报错)时报错,错误信息如下:
Xcode's output:
↳
warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'Flutter')
/Users/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_des-1.1.0/ios/Classes/FlutterDesPlugin.m:2:9: fatal error: 'flutter_des/flutter_des-Swift.h' file not found
#import <flutter_des/flutter_des-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build systemnote: Planning buildnote: Constructing build description
这里说是找不到头文件,使用xcode打开Flutter工程目录下ios目录中的Runner.xcworkspace文件,然后选择pods下的podfile文件,在其头部添加
use_frameworks!
然后执行 pod install 即可。