Skip to content

Xamarin.UITest does not run on a Physical device that has iOS OS version 17 and up (Including iOS 18) #2641

Open
@Moshex

Description

@Moshex

Xamarin.UITest does not run on a Physical device with iOS OS version 17 and up (Including iOS 18). The error below is what you get when trying to run on those OSs. This was at the request of @IlyaBausovAkvelon to open this new ticket. seen here: #2536 (comment)

ExitCode: 65
--
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone14,3";
    "device_osBuild" = "17.5.1 (21F90)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "355.28";
    "dvt_mobiledevice_version" = "1643.120.2";
    "launchSession_schemeCommand" = Test;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64e;
    "operation_duration_ms" = 0;
    "operation_errorCode" = "-1";
    "operation_errorDomain" = IDEInstallCoreDeviceService;
    "operation_errorWorker" = IDEInstallCoreDeviceWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 0;
    "param_debugger_type" = 1;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphoneos";
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 0;
    "param_diag_gpu_frameCapture_enable" = 3;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 1;
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 0;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 0;
    "param_install_style" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 8256;
    "param_launcher_UID" = 2;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 0;
    "param_testing_launchedForTesting" = 1;
    "param_testing_suppressSimulatorApp" = 1;
    "param_testing_usingCLI" = 1;
    "sdk_canonicalName" = "iphoneos17.5";
    "sdk_osVersion" = "17.5";
    "sdk_variant" = iphoneos;
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -xctestrun /var/folders/g1/1jz4c5yd6bx41bgkjh7vmdw80000gn/T/xdb/DeviceAgent.iOS.Dependencies/ef24f54ef16daaef42dcdcead479f797/ipa/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/DeviceAgent-device.xctestrun -destination id=00008110-000C24C93A82401E -derivedDataPath /var/folders/g1/1jz4c5yd6bx41bgkjh7vmdw80000gn/T/xdb/logs/2024.08.12.153750/DerivedData
    IDEDerivedDataPathOverride = /var/folders/g1/1jz4c5yd6bx41bgkjh7vmdw80000gn/T/xdb/logs/2024.08.12.153750/DerivedData
    IDEPackageSupportUseBuiltinSCM = YES
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
	/var/folders/g1/1jz4c5yd6bx41bgkjh7vmdw80000gn/T/xdb/logs/2024.08.12.153750/DerivedData/Logs/Test/Test-Transient Testing-2024.08.12_15-37-51--0600.xcresult
	Application Bundle Not Found
	Runner encountered an error (Failed to install or launch the test runner. (Underlying Error: Application Bundle Not Found. Configure the path to a bundle to be installed on the device.))
** TEST EXECUTE FAILED **
*** If you believe this error represents a bug, please attach the result bundle at /var/folders/g1/1jz4c5yd6bx41bgkjh7vmdw80000gn/T/xdb/logs/2024.08.12.153750/DerivedData/Logs/Test/Test-Transient Testing-2024.08.12_15-37-51--0600.xcresult
}
}
2024-08-12 15:37:52.054 xcodebuild[5680:11647473]  IDELaunchReport: 79d1eaf2879fe000:79d1eaf2879fe000: com.apple.dt.IDERunOperationWorkerFinished {
2024-08-12 15:37:52.054 xcodebuild[5680:11647473]  IDELaunchReport: 79d1eaf2879fe000:79d1eaf2879fe000: Finished with error: Application Bundle Not Found
2024-08-12 15:37:58.264 xcodebuild[5680:11647422] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2024-08-12 15:37:58.264 xcodebuild[5680:11647422] [MT] IDETestOperationsObserverDebug: 6.395 elapsed -- Testing started completed.
2024-08-12 15:37:58.264 xcodebuild[5680:11647422] [MT] IDETestOperationsObserverDebug: 6.395 sec, +6.395 sec -- end
Code: -1
Command line invocation:
Domain: IDEInstallCoreDeviceService
Recovery Suggestion: Configure the path to a bundle to be installed on the device.
Test session results, code coverage, and logs:
Testing failed:
Testing started
User defaults from command line:
User Info: {)
  ----> Xamarin.UITest.XDB.Exceptions.DeviceAgentException : Failed to launch DeviceAgent

also as with other recent errors this error also occurs of these OSs:

System.AggregateException : One or more errors occurred. (Failed to install DeviceAgent: Provided application bundle path does not exist or have incorrect format.)
  ----> Xamarin.UITest.XDB.Exceptions.IDBException : Failed to install DeviceAgent: Provided application bundle path does not exist or have incorrect format.
  ----> System.ArgumentException : Provided application bundle path does not exist or have incorrect format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature requesttestRelated to the App Center Test service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions