While building module 'flutter_blue' imported from
/Users/paul/my_app/ios/Runner/GeneratedPluginRegistrant.m:10:
In file included from <module-includes>:1:
/Users/paul/my_app/build/ios/Debug-iphoneos/flutter_blue/flutter_blue.framework/Headers/fl
utter_blue-umbrella.h:13:9: fatal error: 'FlutterBluePlugin.h' file not found
#import "FlutterBluePlugin.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
/Users/paul/my_app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: could not
build module 'flutter_blue'
@import flutter_blue;
~~~~~~~^~~~~~~~~~~~
2 errors generated.
note: Using new build systemnote: Planning buildnote: Constructing build description
From your project's root folder:
Clean everything:
rm -rf ios/Pods
rm ios/Podfile
rm ios/Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/
flutter clean
flutter packages upgrade
Regenerate the Podfile with:
flutter run
Open ios/Podfile and comment the following line:
#use_frameworks!
The project should now run successfully with:
flutter run
flutter_blue 大坑录 #use_frameworks!
最新推荐文章于 2024-08-23 07:57:55 发布