Fastlane构建报错,提示找不到ProviderScope。

huangapple go评论89阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年8月9日 16:16:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76865820.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定