Flutter 啓動崩潰 VM snapshot must be valid 解決

VM snapshot must be valid
複製代碼
The issue is that Xcode is trying to run a debug build, 
but there are leftover artifacts from the CLI release build
 (even when you clean, since Xcode doesn't clean CLI's build directory).

You can get around this in Xcode by changing to the "Release" Build Configuration.
 In Xcode, go to Product > Scheme > Edit Scheme, then edit the "Run" scheme --
 change the "Build Configuration" to "Release". 
Then when you run in Xcode, you'll be running in Flutter's release mode, 
and your build artifacts will play nicely with one another.
複製代碼

將Xcode的Scheme切換成Release就能夠了bash

相關文章
相關標籤/搜索