-
Notifications
You must be signed in to change notification settings - Fork 150
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
Test bundling doesn't work on physical iOS devices #1297
Comments
Trying to run tests in release-built app, but failing to do so. The error (visible in
|
More notes about the error above: the test runner process dies before +(NSArray<NSInvocation *> *)testInvocations {
NSLog(@"testInvocations called");
// ...
} That line is not visible in the logs. |
This issue is about a feature that isn't yet released to the stable channel. If you're experiencing problems with the stable version, please report a new bug. |
This was fixed by #1303. Caveats apply |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Since iOS 14, Flutter apps built in debug/profile mode must be run through a debugger.
Before test bundling, we've been accomplishing this by doing just this – starting the app under test in debug mode (with the lldb debugger attached using
ios-deploy
).This approach breaks with test bundling because we're running every Dart test in a separate app process – which doesn't work, because there's no debugger attached.
In other words, this is prohibited:
We depend on the above heavily.
The only workaround I see around this is to build the app in release mode.
See also:
XCTest
on iOS #1236The text was updated successfully, but these errors were encountered: