Repository navigation
Description
Steps to reproduce
The camera_avfoundation integration tests build and launch successfully on a physical iPhone running iOS 27.0. three integration tests fail due to unexpected captured image/video resolutions and image output format.
Preconditions
Flutter packages repository is updated to the latest.
Physical iPhone is connected and recognized by Flutter.
Xcode 27.0 Beta 5 is configured.
Valid Apple Development signing is configured.
camera_avfoundation example integration tests are executed using drive-examples.
Steps to Reproduce
Connect a physical iPhone running iOS 27.0.
Navigate to the Flutter packages repository.
Run: dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --ios --packages camera_avfoundation
Allow the camera_avfoundation example application to build and launch.
Observe the integration test results
Expected results
All camera_avfoundation integration tests should pass successfully, and the captured image/video resolutions and image output formats should match the expected values defined by the integration tests.
Actual results
The application builds and launches successfully on the physical iPhone, but 3 integration tests fail.
Capture specific image resolutions
Expected: a value less than or equal to <288.0>
Actual: <480.0>
Failure:.
camera_test.dart:46
camera_test.dart:70
Capture specific video resolutions
Expected: a value less than or equal to <288.0>
Actual: <480.0>
Failure:
camera_test.dart:46
camera_test.dart:122
Capture specific image output formats
Expected:
Actual:
Failure:
camera_test.dart:315
Code sample
Code sample
[Paste your code here]Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Package: camera_avfoundation
Test command:
dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --ios --packages camera_avfoundation
Device:
00008150-00125C1401C2401C (physical iPhone)
Xcode build:
Xcode build done. 10.8s
The application successfully built and launched on the device.
Integration test failures:
1. Capture specific image resolutions
Expected: a value less than or equal to <288.0>
Actual: <480.0>
Failure:
camera_test.dart:46
camera_test.dart:70
Test:
Capture specific image resolutions
2. Capture specific video resolutions
Expected: a value less than or equal to <288.0>
Actual: <480.0>
Failure:
camera_test.dart:46
camera_test.dart:122
Test:
Capture specific video resolutions
3. Capture specific image output formats
Expected: <true>
Actual: <false>
Failure:
camera_test.dart:315
Test:
Capture specific image output formats
Final result:
+8 -3: Some tests failed.
The following packages had errors:
packages/camera/camera_avfoundation:
Integration tests failed.]Flutter Doctor output
Doctor output
[Flutter 3.47.0 • stable
macOS 27.0 26A5406e
Xcode 27.0 Beta 5
Build 27A5237l
iOS 27.0
Dart 3.13.0
CocoaPods 1.16.2
Android SDK 37.0.0
Java 25.0.2]Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
mbcorona commentedon Aug 17, 2026
Hi @sreevishnuqa, thanks for the report. Routing to the iOS team.
hellohuanlin commentedon Aug 20, 2026
By looking at the numbers, it feels like the new iOS is dropping support for low resolution presets (width 288), causing it to fallback to a higher minimum resolution (width 480). PRs welcome.
12 remaining items
[camera]delete fake bitrate/fps integration tests (#13291)
hellohuanlin commentedon Oct 17, 2026
@sreevishnuqa I was not able to reproduce this particular failure. I am wondering what device did you use?
sreevishnuqa commentedon Oct 19, 2026
Hi @hellohuanlin , thanks for investigating this issue.
I retested the
camera_avfoundationintegration tests in my current environment:The
Capture specific video resolutionstest still fails with the following assertion:camera_test.dart:46andcamera_test.dart:122══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: a value less than or equal to <288.0>
Actual: <480.0>
Which: is not a value less than or equal to <288.0>
When the exception was thrown, this was the stack:
#4 main.assertExpectedDimensions (file:///Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart:46:5)
#5 main.testCaptureVideoResolution (file:///Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart:122:12)
#6 main. (file:///Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart:136:45)
#7 testWidgets.. (package:flutter_test/src/widget_tester.dart:192:15)
#8 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1953:5)
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart line 46
The test description was:
Capture specific video resolutions
════════════════════════════════════════════════════════════════════════════════════════════════════
01:10 +0 -2: Capture specific video resolutions [E]
Test failed. See exception logs above.
The test description was: Capture specific video resolutions
hellohuanlin commentedon Oct 20, 2026
Hi, @sreevishnuqa could you try on latest master and verify it's fixed since i don't have an iphone 17? Thanks
[camera]fix resolution test failure due to hardware restriction (flut…
sreevishnuqa commentedon Oct 22, 2026
@hellohuanlin tested this on a physical iPhone 17 using Flutter master (3.50.0-1.0.pre-185) and Xcode 27.2 Beta 3.
The issue is still reproducible.
This was caught by the test expectation on the following line:
file:///Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart line 46
The test description was:
Capture specific video resolutions
════════════════════════════════════════════════════════════════════════════════════════════════════
02:37 +0 -2: Capture specific video resolutions [E]
Test failed. See exception logs above.
The test description was: Capture specific video resolutions
To run this test again: /Users/vishnu/flutter/bin/cache/dart-sdk/bin/dart test /Users/vishnu/packages/packages/camera/camera_avfoundation/example/integration_test/camera_test.dart -p vm --plain-name 'Capture specific video resolutions'
02:55 +6 -2: Some tests failed.
The following packages had errors:
packages/camera/camera_avfoundation:
Integration tests failed.
See above for full details.
vishnu@vishnu packages % flutter doctor -v
[✓] Flutter (Channel master, 3.50.0-1.0.pre-185, on macOS 27.2 26B5112a darwin-arm64, locale en-US) [4.8s]
• Flutter version 3.50.0-1.0.pre-185 on channel master at /Users/vishnu/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 84abdf7 (3 hours ago), 2026-10-22 05:46:25 +0000
• Engine revision 84abdf7
• Dart version 3.15.0 (build 3.15.0-62.0.dev)
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android,
enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager,
omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
[✓] Android toolchain - develop for Android devices (Android SDK version 37.0.0) [688ms]
• Android SDK at /Users/vishnu/Library/Android/sdk
• Emulator version 37.2.12.0 (build_id 16428233) (CL:N/A)
• Platform android-37.2, build-tools 37.0.0
• ANDROID_HOME = /Users/vishnu/Library/Android/sdk
• Java binary at: /Applications/Android Studio 2.app/Contents/jbr/Contents/Home/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run:
flutter config --jdk-dir="path/to/jdk".• Java version OpenJDK Runtime Environment (build 25.0.3+-15898627-b508.16)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 27.2) [830ms]
• Xcode at /Applications/Xcode-27.2-Beta-3.app/Contents/Developer
• Build 27B5038j
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [6ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (5 available) [6.1s]
• flutter’s iPhone (mobile) • 00008150-00125C1401C2401C • ios • iOS 27.2 24B5110a
• iPhone 18 Pro (mobile) • C45557C5-2E4A-4351-A682-FDBA14790AB2 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-27-2 (simulator)
• iPhone Duo (mobile) • 2F8A7EF4-FC78-446C-9899-CA669A92F9DE • ios •
com.apple.CoreSimulator.SimRuntime.iOS-27-2-iPhone19-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 27.2 26B5112a
darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 155.0.8059.86
! Error: Browsing on the local area network for Quincy iphone 14 pro. Ensure the device is unlocked and attached
with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [498ms]
• All expected network resources are available.
• No issues found!
preethi0228-git commentedon Oct 22, 2026
Hi,
Attaching video for the comment mentioned by @sreevishnuqa
cameramaster.mov
Thanks!
hellohuanlin commentedon Oct 22, 2026
@preethi0228-git Hello, the error message shows failure at line 46, which is a comment line. This means you were not running on latest master. Can you pull the master and try again?
sreevishnuqa commentedon Oct 23, 2026
@hellohuanlin Thanks for the update. Verified on the latest Flutter master (3.50.0-1.0.pre-209) and Xcode 27.2 RC. The issue is no longer reproducible, and all camera_avfoundation integration tests passed.
github-actions commentedon Nov 6, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.