注意: 1、Syncing files to device... 如果Demo debug 或者 正式运行后 ,一直显示Syncing files to device,则表示热重载失败,项目文件夹命名造成的(命名只能要字母、数字、下划线, 不要有中文等其他的),改个名字立马解决 (如果想要中文就在外面套一层😆)
2、原生项目集成Flutter的Demo如果运行报错:
clean -> pod install -> Command+B应该就可以了
3、运行'原生项目集成Flutter的Demo'注意期间可能会出现错误: ld: library not found for -lFlutterPluginRegistrant
解决办法: clean -> command + B -> Build Phases中查看“Link binary With Libraries" -> 添加lFlutterPluginRegistrant.a文件就好