skip to Main Content

iOS 14.2 Simulator missing link bubble

Context: I have used iMessage in my Xcode UI tests to simulate launching a deep link into my app. The test types out a message with a link in it, then taps on the metadata bubble to launch the link.

As you can see from the attached image, as of iOS 14 the simulator is not displaying the bubble during these tests. This means I have no way to simulate a link tap. For whatever reason, launching the simulator myself and typing in the link does produce the bubble.

Has anyone else had this issue, or found a resolution? Thanks.

2

Answers


  1. As a workaround and probably a better way, I would recommend you to open universal links with Safari. The core logic remains the same – first you enter the address, then you tap the "go" key

    Login or Signup to reply.
  2. Based on previous comments I recommend you to use these utils to enable running shell commands on your test runner

    https://github.com/Subito-it/SBTUITestTunnel

    https://github.com/Subito-it/SBTUITestTunnelHost

    It is a hacky way, but it is really helpful.

    Then, use host.executeCommand("xcrun simctl openurl ...") to manipulate with simulators

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search