Fix for UITest crashing after Xamarin Studio update to 6.1 (build 5441) fails with SetUp : System.InvalidOperationException

When running UITest locally after updating Xamarin Studio to to 6.1 (build 5441) and to Xcode 8, UITest fails with

“SetUp : System.InvalidOperationException : Sequence contains no matching element … at System.Linq.Enumerable.First[TSource] … at Xamarin.UITest.iOS.Instruments.GetAutomationTemplatePath ()”

UITest crashing with XS 6.1 (build 5441)

Next time I will need to read the release notes more diligently… 😉

There are two options to have this problem fixed:

“– Xcode 8 removes the UI Automation API, causing “SetUp : System.InvalidOperationException : Sequence contains no matching element … at System.Linq.Enumerable.First[TSource] … at Xamarin.UITest.iOS.Instruments.GetAutomationTemplatePath ()” when attempting to use UITest locally.

  • Candidate fix: Update to the Xamarin.UITest 2.0.0 Beta prerelease, which is based on Calabash 0.20 and includes a new API that uses XCUITest rather than UI Automation.
  • Alternate temporary workaround: Keep using Xcode 7, or just keep Xcode 7 installed in the default location and unpack Xcode 8 side-by-side to a custom location.”

After updating to Xamarin.UITest 2.0.0 Beta  ALL IS WELL..!!!

Update to Xamarin.UITest 2.0.0 Beta

 

Link to a  sample XF project with a fix

Leave a Reply

Your email address will not be published. Required fields are marked *