Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Are iOS 10.2 simulators capable of having UI Tests ran on them from the command line?

$
0
0

Running the following command fails with a weird error whenever I'm using a simulator with iOS version 10.2.

mono /Users/administrator/downloads/nunit-2.6.4/bin/nunit-console.exe mobile.uitest.integration.dll

Things run fine if I explicitly set the DeviceIdentifier to a UUID for a 9.3 iOS simulator. So my question is, has anyone gotten the 10.2 simulators to run correctly from command line?

Here's the error:

Error installing com.apple.test.DeviceAgent-Runner to EBBD653F-0166-4AC6-A70C-F8DAAF7DA307:
    Error Domain=com.facebook.FBSimulatorControl Code=0
        "Simulator does not support any of the architectures ([x86_64, i386]) of the executable at
            /Users/administrator/Downloads/buildAgent/temp/buildTmp/xdb/DeviceAgent.iOS.Deployment/aaa222ead8ed496c84e0bee8bc78d8eb/app/DeviceAgent-Runner.app/XCTRunner.
        Simulator Archs ([(null)])"
        UserInfo={NSLocalizedDescription=Simulator does not support any of the architectures ([x86_64, i386]) of the executable at
            /Users/administrator/Downloads/buildAgent/temp/buildTmp/xdb/DeviceAgent.iOS.Deployment/aaa222ead8ed496c84e0bee8bc78d8eb/app/DeviceAgent-Runner.app/XCTRunner.
        Simulator Archs ([(null)])}

    install
        -u,--update-app  [OPTIONAL]  When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
        -c,--codesign-identity   [OPTIONAL]  Identity used to codesign app bundle [device only]  DEFAULT=
        -a,--app-bundle     Path .app bundle (for .ipas, unzip and look inside of 'Payload')
        -d,--device-id   iOS Simulator GUID or 40-digit physical device ID
  at Calabash.XDB.Core.Services.iOSDeviceAgentService.WithErrorHandling (System.Int32 eventId, System.Func`1[TResult] action, System.String errorMessage, System.Int32[] successCodes) [0x000b8] in
    <60893a1ab5b94e1791155db997012292>:0
  at Calabash.XDB.Core.Services.iOSDeviceAgentService+d__16.MoveNext () [0x0016a] in <60893a1ab5b94e1791155db997012292>: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) [0x001fd] in
    <60893a1ab5b94e1791155db997012292>: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
    <60893a1ab5b94e1791155db997012292>:0
  at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00302] in <60893a1ab5b94e1791155db997012292>:0
  at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <60893a1ab5b94e1791155db997012292>:0
  at .mobile.uitest.integration.IntegrationTest.BeforeEachTest () [0x000de] in :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) [0x00038] in
  :0


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>