flutter混编iOS常见问题

1.'flutter_boost' file not found

导入flutter_boost框架时,要在flutter的开发工具(Android Studio)上执行 build->flutter->iOS 打包,flutter工程文件夹下的build/ios/Release-iphoneos就会生成flutter_boost,然后再去iOS工程中执行pod install。

 

2.The plugin `flutter_boost` is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have undefined behaviors when Flutter is integrated into an existing app as a module.

暂时不处理,可以参考官方文档

3.NoMethodError - undefined method `size' for nil:NilClass

使用Android Studio 先执行Pub upgrade, 然后Tools->Flutter->Flutter clean. 再重新 build ->flutter->build iOS。

你可能感兴趣的:(Bug,Flutter,iOS)