Xamarin Ui Test : Failed to install device agent in iPad with Exit Code 5

Tarun Mittal 1 Reputation point
2021-03-16T07:19:09.257+00:00

I am trying to run xamarin UI test in my iPad while running xamarin UI test cases I am getting error.

Xamarin.UITest.XDB.Exceptions.DeviceAgentException : Failed to install DeviceAgent
ExitCode: 5
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources.,
Error installing application: Failed to install application with path /var/folders/dd/ymbnyhwx4cd5fs2mr63vssmr0000gp/T/xdb/DeviceAgent.iOS.Dependencies/14b8db96af88a1b519aed9c325d95624/ipa/DeviceAgent-Runner.app

Below are iPad details.

Model Name - iPad (5th gen)
Software Version - 14.0.1
Model Number - MP2F2LL/A

Nuget Package Details.

Xamarin ui test(3.0.12)
NUnit3TestAdapter(3.17.0)
NUnit(3.12.0)

Xcode ver 12.1

Below are mac configuration details.

=== Operating System ===

Mac OS X 10.15.6
Darwin 19.6.0 Darwin Kernel Version 19.6.0
Sun Jul 5 00:43:10 PDT 2020
root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64

=== Xamarin.iOS ===

Version: 14.2.0.12 (Visual Studio Community)
Hash: e0ce49680
Branch: xcode12.1
Build date: 2020-10-20 09:52:06-0400

=== Apple Developer Tools ===

Xcode 12.1 (17222)
Build 12A7403

=== Visual Studio Community 2019 for Mac ===

Version 8.7.9 (build 9)
Installation UUID: 2280762c-b293-458e-a352-5a8d1bbe2af0
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

=== Mono Framework MDK ===

Runtime:
Mono 6.12.0.93 (2020-02/620cf538206) (64-bit)
Package version: 612000093

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
337 questions
{count} votes