Repository navigation
XCTests and XCUITests failing on url_launcher package iOS 17 XCode RC1 #134971
Copy link
Copy link
Closed
flutter/packages
#5071Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfrom: manual-qaIssue caught from manual QA processIssue caught from manual QA processp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Steps to reproduce
Install XCode RC1 and iOS 17.0 Simulator
git clone
cd packages
cd url_launcher/url_launcher_ios/example/ios
flutter pub get
pod install
Run the test using command (Replace $simulator_id):
xcodebuild test -workspace Runner.xcworkspace -scheme Runner \
-destination 'platform=iOS Simulator,id=$simulator_id' > logs.txt
9- Alternatively, you can run test inside Xcode in the Test Navigator
Expected results
Expected results
Running all tests should succeed
Actual results
Actual results
[Screenshot 1]: Xcode test navigator showing failing tests.
Code sample
Code sample
[Paste your code here]Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Test Case '-[RunnerUITests.URLLauncherUITests testLaunch]' failed (42.205 seconds).
Test Suite 'URLLauncherUITests' failed at 2023-09-18 15:33:34.376.
Executed 1 test, with 1 failure (0 unexpected) in 42.205 (42.207) seconds
Test Suite 'RunnerUITests.xctest' failed at 2023-09-18 15:33:34.377.
Executed 1 test, with 1 failure (0 unexpected) in 42.205 (42.209) seconds
Test Suite 'Selected tests' failed at 2023-09-18 15:33:34.378.
Executed 1 test, with 1 failure (0 unexpected) in 42.205 (42.215) secondsFlutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.14.0-14.0.pre.333, on macOS 13.5.2 22G91 darwin-x64, locale en-UY)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] VS Code (version 1.82.2)
[✓] Connected device (3 available)
[✓] Network resourcesReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfrom: manual-qaIssue caught from manual QA processIssue caught from manual QA processp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform team

Activity
stuartmorgan-g commentedon Sep 19, 2023
The XCTests are no longer valid due to an NSURL behavioral change:
We'll need to see if we can find a different way to create invalid URLs, or we'll have to relax the test expectations (and lose some edge case coverage).
The XCUITest seems to be tapping
Donewithout effect, causing the test to get stuck. That seems like it may be an XCUITest bug, but I'll have to investigate further.[various] Update invalid NSURL tests
[various] Update invalid NSURL tests (#4959)
[webview_flutter] Fix XCUITest in Xcode 15 (#5071)
github-actions commentedon Oct 18, 2023
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.[webview_flutter] Fix XCUITest in Xcode 15 (flutter#5071)
[webview_flutter] Fix XCUITest in Xcode 15 (flutter#5071)