C# App doesn't start up when running Appium WDA on iOS

Joost Jens 5 Reputation points
2024-09-10T12:05:51.0566667+00:00

We are using Appium to test our multi-platform app. (Windows, Android, iOS). This App is written using C# in .Net 8 with MVVMCross.

However, since about month or 2 ago, our App crashes on start up on iOS when the Appium xcuitest WebDriverAgent is running.

Looking into the logs and console, it's because the app is taking longer then 19 seconds to start up. If the WebDriverAgent is not running, the app is starting in less then a second and it working fine.

This seems related to the exact .Net version, as this started happening when.net 8.0.303 was updated to .Net 8.0.401. But any attempt to downgrade to .Net 8.0.303 doesn't seem to make it work again, meaning either our downgrade isn't working or it's something else that was updated around the same time.

We also realized that the ios workload has received an update. We were on 8.0.300 (we believe, could have been 8.0.100 as well) and now it's 8.0.401. We also can't downgrade that on our build server to test unfortunately.

We updated appium and it's drivers was part of the attempts to resolve this issue. It also stopped working with an older version so I don't think Appium directly is responsible for this not working anymore.

Edit2:

Does anyone have any idea what this could be?

Developer technologies .NET .NET MAUI
Developer technologies C#
{count} votes

2 answers

Sort by: Most helpful
  1. Joost Jens 5 Reputation points
    2024-10-17T06:35:30.1033333+00:00

    The full explanation can be found here:
    https://github.com/xamarin/xamarin-macios/issues/21234#issuecomment-2414661157

    But the short version is this happens because the "Window" property from MvvmCross is now exported where previously it wasn't causing the View to be started twice.

    A work around is to remove the "initialViewController" from your storyboard.

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.