重现步骤
- 重现步骤:
- 安装XCode 16.0 Beta 1和iOS 18.0模拟器。
- 克隆Flutter包仓库:
git clone [https://github.com/flutter/packages](https://github.com/flutter/packages)
- 在XCode中打开示例iOS目录:
packages/image_picker/image_picker_ios/example/ios
- 选择Flutter主版本(3.23.0-13.0.pre.188)或稳定版(3.22.2)
- 使用XCode测试视图运行测试,并选择带有iOS 18.0的某些模拟器。
预期结果
之前提到的测试都是成功的。请注意,我们目前正在使用Xcode 16 Beta 1进行测试,其中包括iOS 18模拟器,这可能会破坏测试。
实际结果
以下测试用例失败:
代码示例
代码示例
[Paste your code here]
截图或视频
截图/视频演示
[上传媒体在这里]
日志
日志
testPickingFromGallery: failed - Failed due to not able to find an image with 30 seconds
Flutter Doctor输出
医生输出
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-UY)
• Flutter version 3.22.2 on channel stable at /Users/qa/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (6 days ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
• Android SDK at /Users/qa/Library/Android/sdk
• Platform android-34, build-tools 35.0.0-rc4
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Build 16A5171c
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
[✓] VS Code (version 1.87.2)
• VS Code at /Users/qa/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.90.0
2条答案
按热度按时间bz4sfanl1#
我能够重现这个问题,这里是xcresult(比GitHub的25MB上传限制大):
https://drive.google.com/file/d/1Jf_XBCF1Rx7iqA16ZaIqvktplFtot1Bh/view?usp=sharing
@rzambroni 如果包含详细的测试失败/屏幕截图/设备录制报告,这些报告将最有帮助。
不幸的是,我不知道如何在Xcode的用户界面中导出测试报告,但从命令行你可以运行这个命令(用你正在使用的模拟器替换
iPhone 15 Pro
):然后你可以压缩
test.xcresult
并将其附加到问题上。ve7v8dk22#
看起来选择器的应用程序层次结构发生了变化,需要更新期望。