Bug 60372 - Xamarin UITest Fails to run for iOS with the "Error installing application: Error Domain=com.facebook.FBSimulatorControl"
Summary: Xamarin UITest Fails to run for iOS with the "Error installing application: E...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 11.2 (d15-4)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-25 15:21 UTC by Sean Sparkman
Modified: 2017-11-03 15:58 UTC (History)
4 users (show)

Tags:
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:
Status:
RESOLVED DOWNSTREAM

Description Sean Sparkman 2017-10-25 15:21:42 UTC
XCode Version:  Version 9.0.1 (9A1004)
NUnit Version:  2.6.3
Xamarin.UITest Version:  2.1.4
Visual Studio for Mac:
Visual Studio Enterprise 2017 for Mac
Version 7.2 (build 636)
Installation UUID: 1c685ce6-37a8-4cc8-9aff-b12e400ce9f4
Runtime:
	Mono 5.4.0.201 (2017-06/71277e78f6e) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504000201

NuGet
Version: 4.3.1.4445

.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	2.0.0
	1.1.1
	1.0.4
SDK: /usr/local/share/dotnet/sdk/2.0.0/Sdks
SDK Versions:
	2.0.0
	1.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Sdks

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

Xamarin.Android
Version: 8.0.0.33 (Visual Studio Enterprise)
Android SDK: /Users/seansparkman/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		7.0   (API level 24)
		7.1   (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Apple Developer Tools
Xcode 9.0.1 (13249)
Build 9A1004

Xamarin.iOS
Version: 11.2.0.11 (Visual Studio Enterprise)
Hash: 2f8bbec0
Branch: d15-4-xi
Build date: 2017-10-05 20:56:05-0400

Xamarin.Mac
Version: 3.8.0.49 (Visual Studio Enterprise)

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: 702000636
Git revision: b349c8fc0c2e1aab0179917d56eed75eb3a03337
Build date: 2017-10-06 15:20:04-04
Xamarin addins: a8da992c78f7eb65b3cdb3f951c34a30337cab35
Build lane: monodevelop-lion-d15-4

Operating System
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Enabled user installed addins
MFractor 3.02.12
Redth's Addins 1.0.9
Internet of Things (IoT) development (Preview) 7.1

Error Message:

SetUp : Xamarin.UITest.XDB.Exceptions.DeviceAgentException : Failed to install DeviceAgent

ExitCode: 1

		-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 installing application: Error Domain=com.facebook.FBSimulatorControl Code=0 "Simulator does not support any of the architectures ([x86_64, i386]) of the executable at /var/folders/rt/f3dcp2jd59bdqx6flv2qyhv40000gn/T/xdb/DeviceAgent.iOS.Dependencies/ef04601147daac30ef0dccc3027a2bd4/app/DeviceAgent-Runner.app/DeviceAgent-Runner. Simulator Archs ([(null)])" UserInfo={NSLocalizedDescription=Simulator does not support any of the architectures ([x86_64, i386]) of the executable at /var/folders/rt/f3dcp2jd59bdqx6flv2qyhv40000gn/T/xdb/DeviceAgent.iOS.Dependencies/ef04601147daac30ef0dccc3027a2bd4/app/DeviceAgent-Runner.app/DeviceAgent-Runner. Simulator Archs ([(null)])}

StackTrace:

  at Xamarin.UITest.XDB.Services.iOSDeviceAgentService.WithErrorHandling (System.Int32 eventId, System.Func`1[TResult] action, System.String errorMessage, System.Int32[] successCodes) [0x000c1] in <0d617a84142b49c5bfa7670d2eeb5494>:0 
  at Xamarin.UITest.XDB.Services.iOSDeviceAgentService+<LaunchTestAsync>c__async6.MoveNext () [0x002c7] in <0d617a84142b49c5bfa7670d2eeb5494>: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 <0d617a84142b49c5bfa7670d2eeb5494>: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 <0d617a84142b49c5bfa7670d2eeb5494>:0 
  at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x002de] in <0d617a84142b49c5bfa7670d2eeb5494>:0 
  at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00000] in <0d617a84142b49c5bfa7670d2eeb5494>:0 
  at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <0d617a84142b49c5bfa7670d2eeb5494>:0 
  at MobileConferenceApp.UITests.AppInitializer.StartApp (Xamarin.UITest.Platform platform) [0x00028] in /Users/seansparkman/conference-app/src/MobileConferenceApp.UITests/AppInitializer.cs:36 
  at MobileConferenceApp.UITests.AbstractSetup.BeforeEachTest () [0x00001] in /Users/seansparkman/conference-app/src/MobileConferenceApp.UITests/AbstractSetup.cs:27 
  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 /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
Comment 1 Timothy Risi 2017-10-25 22:17:32 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 & clicking on “Support” in the menubar: http://content.screencast.com/users/Kent.Green/folders/Jing/media/572442e2-c82c-4a25-9a30-1f594f156dd7/00000323.png
Comment 3 Cosmin 2017-11-03 07:47:46 UTC
I also have this issue using Xcode 9.1

Is there any resolution on this?
Comment 4 Kent Green [MSFT] 2017-11-03 15:58:52 UTC
Hi Cosmin,

I've filed this bug in our internal Test Cloud bug tracker and am monitoring it. The issue specifically prevents tests from being run on iOS 11 simulators. iOS 10 & earlier simulators are unaffected, and it appears iOS 11 physical devices are also unaffected. 

So if this is the issue you are hitting, you can workaround it by targeting a non-iOS 11 simulator or another device. 

If that doesn't work, then you may be hitting a different issue. In which case, as noted in comment 1 please reach out to Test Cloud support with some more details about your symptoms & observations.