When you are running tests using Xamarin UITest against an iOS physical device, there might be an error “Instruments failed to
start the app.”
Solution:
To resolve this problem, you could follow these steps to enable UIAutomation from your computer
- Ensure iOS SDK version in OS X is greater or equal to iOS version on real device
- Disconnect your iOS real device from your computer
- Open XCode > Open Devices
- Connect your iOS device to your computer, and then Select your real device
- This step might apply to iOS 8.x, please look at this Device Configuration link on Xamarin site
- Open Instruments: Open Xamarin Studio > Tools > Launch Instruments
- Choose Automation
- Choose the app that you want to run UI automation on you real device
- Press Record button
- Wait a minute for the app running and then quit without saving
- Now you could run your Xamarin UITest using Xamarin Studio