精选文章 flutter_blue 大坑录 #use_frameworks!

flutter_blue 大坑录 #use_frameworks!

作者:攻城无数 时间: 2019-11-05 06:14:06
攻城无数 2019-11-05 06:14:06
While building module 'flutter_blue' imported from
    /Users/paul/my_app/ios/Runner/GeneratedPluginRegistrant.m:10:
    In file included from :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
勿删,copyright占位
分享文章到微博
分享文章到朋友圈

上一篇:android 屏幕密度与图片存放的问题

下一篇:pyhanlp安装-自然语言处理工具-HanLP安装与简单测试

您可能感兴趣

华为云40多款云服务产品0元试用活动

免费套餐,马上领取!
CSDN

CSDN

中国开发者社区CSDN (Chinese Software Developer Network) 创立于1999年,致力为中国开发者提供知识传播、在线学习、职业发展等全生命周期服务。