我正在尝试在flutter应用程序中使用audio_recorder,当我添加到pubspec.yaml后开始构建时,出现以下问题:
Failed to build iOS app
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/tommitchell/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/audio_recorder-1.0.2/ios/Classes/AudioRecorderPlugin.m:2:9: fatal error: 'audio_recorder/audio_recorder-Swift.h' file not found
#import <audio_recorder/audio_recorder-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
我正在使用audio_recorder版本1.0.2
似乎缺少此文件?知道为什么会这样吗?谢谢