问题
When I built my iOS app, it opened perfectly in the simulator on my Macbook. When I publish the app on the itunes store, the app does not work anymore. The splashscreen is shown, but stays on the screen.
回答1:
Solution for me:
1) updated my iOS toolchain with flutter doctor
2) flutter clean
3) flutter build ios --release
in the terminal
4) Archive in Xcode
回答2:
I tried various solutions. But finally i found out issue was version of my android studio(ide used for development for flutter, in my case). I updated my version to 3.2.1 and then followed instructions to run in xcode and it worked in my case. Hope it helps!
回答3:
I fix this by remove project_root/ios/Pods/
& project_root/ios/Podfile.lock
and run pod install
again after flutter clean
& flutter build ios --release
回答4:
I face the same issues, and I finally found that the root of the problem is the setting of workspace of xcode,when i change the workspace settings from legacy build system to new build system,the bug disappear . hope can help you.
来源:https://stackoverflow.com/questions/54133443/flutter-app-opens-but-is-stuck-on-splash-screen