英文:
Fastlane build saying that ProviderScope not found
问题
我尝试使用fastlane将应用发布到Firebase应用分发,但当我运行应用时,它报错说找不到ProviderScope。该应用是基于Riverpod状态管理构建的。
当我以调试或发布模式运行应用时,它完全正常工作。此外,我还创建了一个手动构建,它也神奇地完美运行。只是在Firebase应用分发方面出了问题。
英文:
I tried releasing the app to firebase app distribution using fastlane and when I run the app, it throws an error saying that ProviderScope is not found. The app has been made on top of Riverpod state management.
When I run the app in debug or release mode, it works absolutely fine. Furthermore, I also created a manual build an it also magically works perfectly. Just having issue with Firebase App Distribution.
答案1
得分: 1
正如我之前建议的,并且后来由Shrijan Regmi指出的那样,问题出在多个入口点上,即存在多个不同的main.dart
文件。而在构建过程中使用了错误的入口点。
英文:
As I suggested, and later as Shrijan Regmi pointed out, the problem was in multiple entry points, i.e. there are multiple different main.dart
files. And the wrong entry point was used for the build.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论