Failed to install DeviceAgent iOS 11.4 Simulator

Peter.6188Peter.6188 USMember

I know this question has been answered, somehow, but I never get it resolved.

I tried to update latest everything, tried to delete xdb folder, tried to restart VS; tried to restart Mac.
But nothing worked

Here is my error message, and down below listed all my settings:

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
    -f,--force  <force-reinstall-app> [OPTIONAL]    Reinstall the app if the device contains an older version than the bundle specified DEFAULT=0
    -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
install <app-path>

App com.apple.test.DeviceAgent-Runner is not installed on 33646A07-6C1D-4510-9D09-B7D90D0D6F0C
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/s3/h6mfsx5x5gd8qt5l5z92kr980000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/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/s3/h6mfsx5x5gd8qt5l5z92kr980000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/app/DeviceAgent-Runner.app/DeviceAgent-Runner. Simulator Archs ([(null)])}

Versions:

Visual Studio Enterprise 2017 for Mac Version 7.5.3 (build 7)
Xcode Version 9.4.1 (9F2000)
Xamarin.iOS Version: 11.12.0.4 (Visual Studio Enterprise)
Mac OS X 10.13.5
Xamarin.TestCloud.Agent Version 0.21.5
Xamarin.UITest Version 2.2.4
NUnit Version 2.6.4

Answers

  • kensykoraostkensykoraost USMember
    edited July 2018

    I'm also running into this issue, any ideas on how to resolve it?

    Logs: http s://gist.github.com/kensykora/1f478f72a7cd165e84dbdb99e45eb67d (remove the spaces)

    Key Snippet:

    25-07-2018 09:04:06.426 -05:00 - 6999 - Running: /var/folders/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/bin/iOSDeviceManager install "/var/folders/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/app/DeviceAgent-Runner.app" -d 3BA8A7B6-6B74-4B30-82B7-0E1EC6467C6E
    25-07-2018 09:04:42.756 -05:00 - 43329 - Exit code '1' received from '/var/folders/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/bin/iOSDeviceManager install "/var/folders/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/app/DeviceAgent-Runner.app" -d 3BA8A7B6-6B74-4B30-82B7-0E1EC6467C6E'
    
            -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
            -f,--force  <force-reinstall-app> [OPTIONAL]    Reinstall the app if the device contains an older version than the bundle specified DEFAULT=0
            -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
        install <app-path>
    App com.apple.test.DeviceAgent-Runner is not installed on 3BA8A7B6-6B74-4B30-82B7-0E1EC6467C6E
    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/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/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/fh/7wnt1kz531nfp4ncd0fxk9_80000gn/T/xdb/DeviceAgent.iOS.Dependencies/9a7eae887a041f733c06f5eef3e12600/app/DeviceAgent-Runner.app/DeviceAgent-Runner. Simulator Archs ([(null)])}
    
    Visual Studio Enterprise 2017 for Mac
    Version 7.5.4 (build 3)
    Installation UUID: 1b17c4d6-7510-4290-be94-6463e0ad2030
    Runtime:
        Mono 5.10.1.57 (2017-12/ea8a24b1bbf) (64-bit)
        GTK+ 2.24.23 (Raleigh theme)
        Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)
    
        Package version: 510010057
    
    NuGet
    Version: 4.3.1.4445
    
    .NET Core
    Runtime: /usr/local/share/dotnet/dotnet
    Runtime Versions:
        2.1.1
        2.0.5
        2.0.0
        1.1.1
        1.0.4
    SDK: /usr/local/share/dotnet/sdk/2.1.301/Sdks
    SDK Versions:
        2.1.301
        2.1.4
        2.0.2
        2.0.0
        1.0.1
    MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks
    
    Xamarin.Profiler
    Version: 1.6.2
    Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
    
    Xamarin.Android
    Version: 8.3.3.2 (Visual Studio Enterprise)
    Android SDK: /Users/kensykora/Library/Developer/Xamarin/android-sdk-macosx
        Supported Android versions:
            5.0 (API level 21)
            5.1 (API level 22)
            6.0 (API level 23)
            7.0 (API level 24)
            7.1 (API level 25)
            8.0 (API level 26)
            8.1 (API level 27)
    
    SDK Tools Version: 26.1.1
    SDK Platform Tools Version: 27.0.1
    SDK Build Tools Version: 27.0.3
    
    Java SDK: /usr
    java version "1.8.0_152"
    Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
    Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
    
    Xamarin Inspector
    Version: 1.4.0
    Hash: b3f92f9
    Branch: master
    Build date: Fri, 19 Jan 2018 22:00:34 GMT
    Client compatibility: 1
    
    Apple Developer Tools
    Xcode 9.4.1 (14161)
    Build 9F2000
    
    Xamarin.Mac
    Version: 4.4.1.193 (Visual Studio Enterprise)
    
    Xamarin.iOS
    Version: 11.12.0.4 (Visual Studio Enterprise)
    Hash: 64fece5f
    Branch: d15-7
    Build date: 2018-05-29 20:00:44-0400
    
    Build Information
    Release ID: 705040003
    Git revision: 6ae731889c896d6733efb8ff5117f5bf5b17b509
    Build date: 2018-07-19 13:07:45-04
    Xamarin addins: 417fed09624e1e1f76ab0a11e8b97ffd8bbf91e1
    Build lane: monodevelop-lion-d15-7
    
    Operating System
    Mac OS X 10.13.5
    Darwin 17.6.0 Darwin Kernel Version 17.6.0
        Tue May  8 15:22:16 PDT 2018
        root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
    
    Enabled user installed addins
    Internet of Things (IoT) development (Preview) 7.5
    
    
  • JanettHolstJanettHolst DKUniversity ✭✭
    edited July 2018

    I have this issue as well - Please tell me if you found a solution :#

  • JanettHolstJanettHolst DKUniversity ✭✭

    I have received a response from a bug report I posted for the Xamarin.TestCloud.Agent nuget. The response was that Xcode 9.4.x support is not yet released to the master branch of the UITest nuget. However, they are hoping to release v. 2.2.5 next week.

Sign In or Register to comment.