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

Xamarin Dev Days – Jacksonville

Xamarin Dev Days JAX was on September 12, 2015 and it truly was “more than just a hackathon” and it was a great success. Xamarin super team (Krystin Stutesman and John Davis) did great job presenting, teaching, answering tough questions and helping one on one with setup and labs, TekSystems made sure we had a plenty of food for breakfast and lunch and I had a great time presenting about MVVM + Xamarin Forms as well as helping out with organizing our event.

Big thanks go to Dr Roy Swapnoneel and School of Computing University of North Florida for allowing us to use their auditorium.

Xam Days JAX

Shortly after the breakfast, Krystin Stutesman, the newest Xamarin Evangelist   kicked off Xamarin Dev Day with two sessions: “Developing iOS & Android Apps in C#” and “Introduction to Xamarin.Forms, Insights, and Test Cloud”, she did an excellent job.

After Krystin, I presented “Intro to MVVM in 30 min”

Intro to MVVM

Right before lunch W Brian Leonard, from Oracle presented session about Oracle Mobile Cloud Service titled: “Enterprise Mobile Success with Xamarin and Oracle”

W Brian Leonard, Oracle

Lunch was provided by TekSystems and then we got into the labs, with Krystin and  John Davis helping with one on one questions about hands on labs and other topics related to Xamarin development.

Xamarin hands on labs

Congratulations to our raffle winners and thanks to our other sponsors: TekSystems, Telerik, Nokia and Pluralsight who provided some cool raffle prizes