-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: running on android devices but shown me "XCode Scheme must be set to Release to use Shorebird" and apps crashed #2739
Comments
Based on the release metadata, it looks like you aren't using shorebird severs (you've set the base url to |
11446-11446 flutter com.langya.xiangji.fast A [FATAL:flutter/shell/common/shorebird/shorebird.cc(93)] Check failed: DartSnapshot::VMSnapshotFromSettings(settings). XCode Scheme must be set to Release to use Shorebird means that you're running inside Xcode with the Scheme set to Debug. This can easily happen. You just want to change the launch scheme to Release to be able to run from within XCode. Although running from within XCode should only be needed if building your own Shorebird engine. |
Hmm, but this is an Android build, so that assert shouldn't be involved at all. |
OK, looking at the check again: What's likely happening is that you're using Flutter Engine APIs manually rather than through Google's auto-generated template? (e.g. using https://api.flutter.dev/javadoc/index.html from your app). That's all fine to do, but in this case I think an invalid path is being passed down into Flutter and happens to be then crashing in Shorebird due to this bogus assert. |
Leaving this open for us to improve the logging/asserting behavior. |
Sorry for my belated reply. I am using Google's auto-generated template. |
@bryanoltman can you remove this ASSERT next time you're in this code in the engine? Or at least move it to be iOS only (e.g. move to the iOS hook in points). That won't fix mark's issue, but it will change its behavior to hopefully help reveal what's actually going on. |
App ID: 42c91bdd-f4e7-40ac-b273-9c4bbdd63919
I only ran
shorebird release android --flutter-version 3.22.3 --artifact apk --build-number 2
and installed the apk, and started app on devices, the app was crashed.Steps To Reproduce
shorebird release android --flutter-version 3.22.3 --artifact apk --build-number 2
to build apkRun log
libnb com.langya.xiangji.fast V enter native_bridge3_loadLibraryExt /data/app/com.langya.xiangji.fast-P_yxsAycNy0UYilF78CmCg==/lib/arm/libflutter.so, 0, 0x3
11446-11473 libnb com.langya.xiangji.fast V native_bridge3_loadLibraryExt: 0xd5031900
11446-11473 libnb com.langya.xiangji.fast V enter native_bridge2_getTrampoline JNI_OnLoad, trampoline_addr 0xf39f3000
11446-11446 flutter com.langya.xiangji.fast A [FATAL:flutter/shell/common/shorebird/shorebird.cc(93)] Check failed: DartSnapshot::VMSnapshotFromSettings(settings). XCode Scheme must be set to Release to use Shorebird
11446-11446 libc com.langya.xiangji.fast A Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 11446 (ya.xiangji.fast), pid 11446 (ya.xiangji.fast)
The text was updated successfully, but these errors were encountered: