`bundleIdentifier != nil` runtime crash
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ios, objective-c
- Domain
- mobile-dev, testing
Research direction
Check out the mr/bluepill/bundle.identifier.issue branch and run bazelisk test //bluepill:UI_Tests_Bluepill to reproduce the crash. Compare the Bazel-built rules_ios path with the standard xctestrunner, using the reported runtime output as the starting point. Done means the UI test bundle launches reliably without the bundleIdentifier != nil failure.
Written by the indexing model from the issue text.
Description
bundleIdentifier != nil issue when running rules_ios/Bazel-built ios_ui_test that doesn't occur when using the standard xctestrunner.
In this simplistic example, I was getting it to happen always. But in our real project, this crash was happening most of the time (maybe 9/10 cases) but sometimes the app + UI test bundle would launch.
Reproduction
- Checkout https://github.com/mattrobmattrob/rules_swift_testbed/tree/mr/bluepill/bundle.identifier.issue. This is a prebuilt "release" on ~
masterfrom this repo. - Use the
mr/bluepill/bundle.identifier.issuebranch - Run
bazelisk test //bluepill:UI_Tests_Bluepill.
Runtime Error
{41232} 20221109.230820 [ INFO ] (BP-1) Test plan started!
{41232} 20221109.230820 [ INFO ] (BP-1) Test bundle is connected. Capabilities = <XCTCapabilities: 0x600002b573a0>: {
"ubiquitous test identifiers" = 1;
}
{41232} 20221109.230820 [ INFO ] (BP-1) _XCT_didBeginExecutingTestPlan
{41232} 20221109.230820 [ INFO ] (BP-1) All Tests started.
{41232} 20221109.230820 [ INFO ] (BP-1) Starting TestSuite All tests
{41232} 20221109.230820 [ INFO ] (BP-1) Starting TestSuite SimpleTest.xctest
{41232} 20221109.230820 [ INFO ] (BP-1) Starting TestSuite SimpleUITests
{41232} 20221109.230820 [ FAILED ] (BP-1) 0.002188s SimpleUITests/testPasses()
{41232} 20221109.230820 [ ERROR ] (BP-1) HOW DID WE GET AN ERROR THAT WASN'T PARSED? We received an error in a test case that wasn't started or did not parse properly.
Problem line: XCTestOutputBarrier/tests/ios/ui-test/simple.swift:10: error: -[SimpleTest.SimpleUITests testPasses] : Invalid parameter not satisfying: bundleIdentifier != nil (NSInternalInconsistencyException)
{41232} 20221109.230820 [ INFO ] (BP-1) _XCT_didFinishExecutingTestPlan
{41232} 20221109.230820 [ INFO ] (BP-1) All Tests Completed.
{41232} 20221109.230820 [ INFO ] (BP-1) DTXSocketTransport disconnected
{41232} 20221109.230820 [ INFO ] (BP-1) DTXConnection disconnected.
{41232} 20221109.230821 [ INFO ] (BP-1) Finished
- Dominant language
- Objective-C
- Stars
- 3.2k
- Forks
- 227
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobileNativeFoundation/bluepill
-
discussion Xcode-upgrade
Difficulty 5/5 Over a week Newbie friendliness 20/100
MobileNativeFoundation/bluepill#572 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
MobileNativeFoundation/bluepill#551 · 2 comments ·
-
MobileNativeFoundation/bluepill#549 · 3 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
MobileNativeFoundation/bluepill#543 · 1 comment ·
All issues in MobileNativeFoundation/bluepill
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
obsproject/obs-studio#13918 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SwiftOldDriver/iOS-Weekly#5439 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100