Bug 60592 - Failed to install DeviceAgent ExitCode: 8
Summary: Failed to install DeviceAgent ExitCode: 8
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 11.6 (xcode9.2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2017-11-09 12:05 UTC by Karol S
Modified: 2017-11-13 10:45 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Karol S 2017-11-09 12:05:30 UTC
1) Test Error : PackageName.UiTests.HappyPath(1).General test
    Xamarin.UITest.XDB.Exceptions.DeviceAgentException : Failed to install DeviceAgent
 ExitCode: 8
 		-c,--codesign-identity	<codesign-identifier> [OPTIONAL] 	Identity used to codesign app bundle [device only]. Deprecated - should use profile path.	DEFAULT=
 		-d,--device-id	<device-identifier>	iOS Simulator GUID or 40-digit physical device ID
 		-i,--resources-path	<resources-path> [OPTIONAL] 	Path to resources (executables) to inject into app directory. A list of colon separated files may be specified.
 		-p,--profile-path	<profile-path> [OPTIONAL] 	Path to provisioning profile
 		-u,--update-app	<should-update-app> [OPTIONAL] 	When true, will reinstall the app if the device contains an older version than the bundle specified	DEFAULT=1
 	install <app-path>
 Error getting device with ID b9dd4cd0382e4f52b0fc9e409ff99f620e16290c: Error Domain=com.facebook.FBControlCore Code=0 "Failed to load device console entries" UserInfo={NSLocalizedDescription=Failed to load device console entries}
   at Xamarin.UITest.XDB.Services.iOSDeviceAgentService.WithErrorHandling (System.Int32 eventId, System.Func`1[TResult] action, System.String errorMessage, System.Int32[] successCodes) [0x000c1] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at Xamarin.UITest.XDB.Services.iOSDeviceAgentService+<LaunchTestAsync>c__async6.MoveNext () [0x002c7] in <3217160ae9ba46ffb7123901ef92978c>:0 
 --- End of stack trace from previous location where exception was thrown ---
   at Xamarin.UITest.iOS.iOSAppLauncher.LaunchAppLocal (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, System.Boolean clearAppData) [0x0020a] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at Xamarin.UITest.iOS.iOSAppLauncher.LaunchApp (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, Xamarin.UITest.TestCloud.TestCloudiOSAppConfiguration testCloudAppConfiguration, Xamarin.UITest.Shared.Http.HttpClient testCloudWsClient, Xamarin.UITest.Shared.Http.HttpClient xtcServicesClient, System.Boolean testCloudUseDeviceAgent) [0x0007a] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x002de] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00000] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <3217160ae9ba46ffb7123901ef92978c>:0 
   at PackageName.AppInitializer.startApp (System.Int32 platform) [0x0004b] in <5a042977e833bd01a74503837729045a>:0 
   at PackageName.TestBase.startApp (System.Int32 platform) [0x00001] in <5a042977e833bd01a74503837729045a>:0 
   at PackageName.HappyPath.General test () [0x00020] in <5a042977e833bd01a74503837729045a>:0 
   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <4fdc5ed61a074cafb49fa42deb20d521>:0
Comment 1 Karol S 2017-11-09 12:20:55 UTC
=== Visual Studio Community 2017 for Mac ===

Version 7.2.2 (build 11)
Installation UUID: 94648c72-23a4-4d31-a62d-01e35a8b0fca
	Mono (2017-06/1f4613aa1ac) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504010006

=== NuGet ===


=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 1.0.1
SDK: /usr/local/share/dotnet/sdk/1.0.0-preview2-003131/Sdks
SDK Version: 1.0.0-preview2-003131
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.6
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.1 (13532)
Build 9B55

=== Xamarin.iOS ===

Version: (Visual Studio Community)
Hash: 51128b8c
Branch: xcode9.1
Build date: 2017-10-31 22:42:13-0400

=== Xamarin.Android ===

Version: (Visual Studio Community)
Android SDK: /Users/macteamcity/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		6.0   (API level 23)
		7.1   (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.4
SDK Build Tools Version: 25.0.2

Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Android Designer EPL code available here:

=== Xamarin.Mac ===

Version: (Visual Studio Community)

=== Xamarin Inspector ===

Version: 1.3.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 702020011
Git revision: b604c37c5a4a2f0919b45ffbe2aaad9fe040af31
Build date: 2017-11-01 08:31:43-04
Xamarin addins: d57dc14cbd4eb166ee62bab585965ab78d3650bc
Build lane: monodevelop-lion-d15-4

=== Operating System ===

Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Wed Oct  4 00:17:00 PDT 2017
    root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64
Comment 2 Karol S 2017-11-09 12:22:14 UTC
Happens when Xamarin.UiTest tries to run iOS tests. Worked bfore, don't know what has changed in the meantime.
Comment 3 Alex Soto [MSFT] 2017-11-09 15:50:40 UTC
Even though you might only be hitting this issue locally, we research & triage Xamarin.UITest issues through the Test Cloud support channels because there’s a lot of crossover between the testing platform and testing frameworks.

You can reach out to support by logging into testcloud.xamarin.com and clicking on “Support” in the menubar:

Comment 4 Kent Green [MSFT] 2017-11-10 16:33:53 UTC
Just an update that the primary known cause of this issue should be fixed as of Xamarin.UITest 2.2.1 which was released yesterday. If rebuilding and updating to this package does not help with the issue, please reach out to support as noted in comment 3.
Comment 5 Karol S 2017-11-13 10:45:18 UTC
I confirm that it works again in Xamarin.UITest 2.2.1