IOS App is crashing soon after it launches in Simulator. Giving [WD Proxy] Got an unexpected response: {"value":"Failed to launch

Dear friends,

When I run the code the App launches and starts crashing in IOS simulator.

MacOS Mojave v10.14.5
Appium v1.13.0

cap.setCapability(MobileCapabilityType. DEVICE_NAME , “iPad Demo 6th generation”);
cap.setCapability(MobileCapabilityType. PLATFORM_NAME , “iOS”);
cap.setCapability(MobileCapabilityType. PLATFORM_VERSION , “12.2”);
cap.setCapability(MobileCapabilityType. AUTOMATION_NAME , AutomationName. IOS_XCUI_TEST );
cap.setCapability(MobileCapabilityType. APP , “//Users//santoshkumar//Desktop//Ayush DEV 5.03.app”);
IOSDriver<IOSElement> driver = new IOSDriver<>( new URL(“http://127.0.0.1:4723/wd/hub”), cap);

Log:
[Appium] Welcome to
[XCUITest] Sending createSession command to WDA

[WD Proxy] Matched ‘/session’ to command name ‘createSession’

[WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“net.orbithc.ayush”,“arguments”:[],“environment”:{},“eventloopIdleDelaySec”:0,“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

[WD Proxy] Got response with status 200: {“value”:“Failed to launch net.orbithc.ayush application”,“sessionId”:“0E74E6A9-0EF7-410D-A1CF-195E53093952”,“status”:13}

[WD Proxy] Determined that the downstream protocol for proxy is MJSONWP

[WD Proxy] Got an unexpected response: {“value”:“Failed to launch net.orbithc.ayush application”,“sessionId”:“0E74E6A9-0EF7-410D-A1CF-195E53093952”,“status”:13}

[MJSONWP] Matched JSONWP error code 13 to UnknownError

[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Failed to launch net.orbithc.ayush application). Retrying…

Typically this is because the app under test has been compiled for iDevice (ARM processor) where the Simulator is actually run using the Mac processor (x86). Here’s a blog post on making a Simulator build:

You may need to show this to your developers.