App launch and closed immediately on iOS 10.1 Simulator using Appium 1.6.1 and Xcode 8.1

My App and WebdriverAgent has been installed on the iPhone5/iOS 10.1 simulator and launched once, then immediately closed. Therefore failed with - “Enqueue Failure: UI Testing Failure - App accessibility isn’t loaded /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests”

Really appreciate your timely help for fixing this issue. Its high priority for me now. kindly help on this!! :slight_smile:

Application:
Am using Appium 1.6.1 installed via command line using npm
Xcode both 7.2 and 8.1 (Switching Xcode between different iOS version)
MacOS Sierra - 10.12.1 (Latest)
All external dependencies were added via command line tools - deviceconsole, ideviceinstaller, libimobiledevice, etc

My capabilities:
DesiredCapabilities capabilities = new DesiredCapabilities();
File app = new File("/Users/WK/iPAFiles/XXXX.ipa");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone”);
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(“udid”, “DAB43CCF-E3FD-4317-BC39-24409AAAA37C”); //Simulator udid
capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
capabilities.setCapability(“bundleid”, “XXXXX”);
capabilities.setCapability(“realDeviceLogger”, “/usr/local/lib/node_modules/deviceconsole/deviceconsole”);
capabilities.setCapability(“iosInstallPause”,“50000”);
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME,“XCUITest”);

Appium log:
Last login: Fri Dec 2 12:44:36 on ttys000
Akilan-MAC:~ WK$ appium --udid DAB43CCF-E3FD-4317-BC39-24409AAAA37C --ipa “/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa” --session-override
[Appium] Welcome to Appium v1.6.1
[Appium] Non-default server args:
[Appium] ipa: ‘/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa’
[Appium] sessionOverride: true
[Appium] udid: ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’
[Appium] Deprecated server args:
[Appium] -U,–udid => --default-capabilities ‘{“udid”:“DAB43CCF-E3FD-4317-BC39-24409AAAA37C”}’
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] udid: ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:"/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“bundleid”:“com.lexi.Individual”,“automationName”:“XCUITest”,“browserName”:"",“platformName”:“iOS”,“udid”:“DAB43CCF-E3FD-4317-BC39-24409AAAA37C”,“deviceName”:“iPhone”,“iosInstallPause”:“50000”},“requiredCapabilities”:{}},“desiredCapabilities”:{“app”:"/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“bundleid”:“com.lexi.Individual”,“automationName”:“XCUITest”,“browserName”:"",“platformName”:“iOS”,“udid”:“DAB43CCF-E3FD-4317-BC39-24409AAAA37C”,“deviceName”:“iPhone”,“iosInstallPause”:“50000”},“requiredCapabilities”:{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“bundleid”:“com.lexi.Individual”,“automationName”:“XCUITest”,“browserName”:"",“platformName”:“iOS”,“udid”:“DAB43CCF-E3FD-4317-BC39-24409AAAA37C”,“deviceName”:“iPhone”,“iosInstallPause”:“50000”},{},{“desiredCapabilities”:{“app”:"/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“bundleid”:“com.lexi.Individual”,“automationName”:“XCUITest”,“browserName”:"",“platformName”:“iOS”,“udid”:“DAB43CCF-E3FD-4317-BC39-24409AAAA37C”,“deviceName”:“iPhone”,“iosInstallPause”:“50000”},“requiredCapabilities”:{}},null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: ‘/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa’
[Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
[Appium] bundleid: ‘com.lexi.Individual’
[Appium] automationName: ‘XCUITest’
[Appium] browserName: ‘’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’
[Appium] deviceName: ‘iPhone’
[Appium] iosInstallPause: ‘50000’
[debug] [XCUITest] XCUITestDriver version: 2.2.0
[BaseDriver] Capability ‘iosInstallPause’ changed from string (‘50000’) to integer (50000). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: bundleid.
[BaseDriver] Session created with session id: a94f3c8f-17b5-4e4e-81b6-0b961021fc89
[debug] [XCUITest] Xcode version set to ‘8.1’
[debug] [XCUITest] iOS SDK Version set to ‘10.1’
[iOSSim] Constructing iOS simulator for Xcode version 8.1 with udid ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’
[XCUITest] Determining device to run tests on: udid: ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’, real device: false
[XCUITest] No platformVersion specified. Using device version: ‘10.1’
[BaseDriver] Using local app ‘/Users/WK/iPAFiles/lexicomp-devflavor-3.0.0-1476719373.ipa’
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/Payload/Individual.app’
[debug] [XCUITest] Checking whether app ‘/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/Payload/Individual.app’ is actually present
[debug] [XCUITest] App is present
[debug] [ios-app-utils] Getting bundle ID from app ‘/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/Payload/Individual.app’: ‘com.lexi.Individual’
[debug] [iOSLog] Starting iOS 10.1 simulator log capture
[debug] [iOSLog] System log path: /Users/WK/Library/Logs/CoreSimulator/DAB43CCF-E3FD-4317-BC39-24409AAAA37C/system.log
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘DAB43CCF-E3FD-4317-BC39-24409AAAA37C’ already booted
[debug] [XCUITest] Installing app ‘/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/2016112-8327-1sdx3cy.zj02cpu8fr/Payload/Individual.app’ on device
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=DAB43CCF-E3FD-4317-BC39-24409AAAA37C -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/BB814A7E-E31D-4402-84EA-19DF5003C4DA/Session-WebDriverAgentRunner-2016-12-02_130701-c7YgVb.log
[debug] [WebDriverAgent] Sim: Dec 2 13:07:01 Akilan-MAC CoreSimulatorBridge[5207]: Requesting installation of file:///usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
[debug] [WebDriverAgent] Sim: CFBundleIdentifier = “com.apple.test.WebDriverAgentRunner-Runner”;
[debug] [WebDriverAgent] Sim: PackageType = Developer;
[debug] [WebDriverAgent] Sim: SimulatorRootPath = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk”;
[debug] [WebDriverAgent] Sim: SimulatorUserPath = “/Users/WK/Library/Developer/CoreSimulator/Devices/DAB43CCF-E3FD-4317-BC39-24409AAAA37C/data”;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:07:07 Akilan-MAC CoreSimulatorBridge[5207]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
[debug] [WebDriverAgent] Sim: arguments = (
[debug] [WebDriverAgent] Sim: “-NSTreatUnknownArgumentsAsOpen”,
[debug] [WebDriverAgent] Sim: NO,
[debug] [WebDriverAgent] Sim: “-ApplePersistenceIgnoreState”,
[debug] [WebDriverAgent] Sim: YES
[debug] [WebDriverAgent] Sim: );
[debug] [WebDriverAgent] Sim: environment = {
[debug] [WebDriverAgent] Sim: “DTX_CONNECTION_SERVICES_PATH” = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework”;
[debug] [WebDriverAgent] Sim: “DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: “DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: NSUnbufferedIO = YES;
[debug] [WebDriverAgent] Sim: “OS_ACTIVITY_DT_MODE” = YES;
[debug] [WebDriverAgent] Sim: “XCODE_DBG_XPC_EXCLUSIONS” = “com.apple.dt.xctestSymbolicator”;
[debug] [WebDriverAgent] Sim: XCTestConfigurationFilePath = “/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/com.apple.dt.XCTest/0E7CCA75-512F-4DC0-B52F-0DBF8C5826B0/remote-container/tmp/WebDriverAgentRunner-0E7CCA75-512F-4DC0-B52F-0DBF8C5826B0.xctestconfiguration”;
[debug] [WebDriverAgent] Sim: “__XCODE_BUILT_PRODUCTS_DIR_PATHS” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: };
[debug] [WebDriverAgent] Sim: stderr = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: stdout = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: “wait_for_debugger” = 0;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:07:07 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0xd60c] Sending request to open “com.apple.test.WebDriverAgentRunner-Runner”
[debug] [WebDriverAgent] Sim: Dec 2 13:07:07 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0xd60c] Request successful: <FBSProcessHandle: 0x7c85cc60; XCTRunner:8563; valid: YES>
[debug] [WebDriverAgent] Sim: Dec 2 13:07:07 Akilan-MAC XCTRunner[8563]: assertion failed: 16B2659 14B72: libxpc.dylib + 68346 [360AA905-28A1-33CC-BB86-C4B516CCB1B0]: 0x7d
[debug] [WebDriverAgent] Sim: Dec 2 13:07:08 Akilan-MAC XCTRunner[8563]: Running tests…
[debug] [WebDriverAgent] Sim: Dec 2 13:07:09 Akilan-MAC XCTRunner[8563]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Dec 2 13:07:10 Akilan-MAC XCTRunner[8563]: Built at Dec 2 2016 13:06:54
[XCUITest] Detected that WebDriverAgent is running at url ‘http://172.25.80.102:8100
[debug] [WebDriverAgent] Sim: Dec 2 13:07:10 Akilan-MAC XCTRunner[8563]: ServerURLHere->http://172.25.80.102:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url ‘http://172.25.80.102:8100
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.lexi.Individual”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[debug] [WebDriverAgent] Sim: Dec 2 13:08:14 Akilan-MAC XCTRunner[8563]: Enqueue Failure: UI Testing Failure - App accessibility isn’t loaded /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
[HTTP] <-- POST /wd/hub/session - - ms - -
[debug] [WebDriverAgent] Sim: Dec 2 13:09:15 Akilan-MAC XCTRunner[8563]: Enqueue Failure: UI Testing Failure - ‘<XCUIApplicationImpl: 0x7c822470 com.lexi.Individual>’ App state is still not running active, state = XCApplicationStateNotRunning /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“69C4311E-A8D1-4194-B66B-B91DDB6324AB”,“value”:“Failed to launch com.lexi.Individual application”,“status”:13}
[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.lexi.Individual application
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 8402)
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[XCUITest] Shutting down Logger process (pid 8410)
[XCUITest] Simulator log exited with code ‘null’
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=DAB43CCF-E3FD-4317-BC39-24409AAAA37C -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/2F1565D6-92B5-415F-ADE4-BF9BDB6242C0/Session-WebDriverAgentRunner-2016-12-02_130935-XkQ67G.log
[debug] [WebDriverAgent] Sim: Dec 2 13:09:35 Akilan-MAC CoreSimulatorBridge[5207]: Requesting installation of file:///usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
[debug] [WebDriverAgent] Sim: CFBundleIdentifier = “com.apple.test.WebDriverAgentRunner-Runner”;
[debug] [WebDriverAgent] Sim: PackageType = Developer;
[debug] [WebDriverAgent] Sim: SimulatorRootPath = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk”;
[debug] [WebDriverAgent] Sim: SimulatorUserPath = “/Users/WK/Library/Developer/CoreSimulator/Devices/DAB43CCF-E3FD-4317-BC39-24409AAAA37C/data”;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:09:39 Akilan-MAC CoreSimulatorBridge[5207]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
[debug] [WebDriverAgent] Sim: arguments = (
[debug] [WebDriverAgent] Sim: “-NSTreatUnknownArgumentsAsOpen”,
[debug] [WebDriverAgent] Sim: NO,
[debug] [WebDriverAgent] Sim: “-ApplePersistenceIgnoreState”,
[debug] [WebDriverAgent] Sim: YES
[debug] [WebDriverAgent] Sim: );
[debug] [WebDriverAgent] Sim: environment = {
[debug] [WebDriverAgent] Sim: “DTX_CONNECTION_SERVICES_PATH” = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework”;
[debug] [WebDriverAgent] Sim: “DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: “DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: NSUnbufferedIO = YES;
[debug] [WebDriverAgent] Sim: “OS_ACTIVITY_DT_MODE” = YES;
[debug] [WebDriverAgent] Sim: “XCODE_DBG_XPC_EXCLUSIONS” = “com.apple.dt.xctestSymbolicator”;
[debug] [WebDriverAgent] Sim: XCTestConfigurationFilePath = “/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/com.apple.dt.XCTest/BFD90DAE-28A0-4107-B595-EAAB6ADFD4A2/remote-container/tmp/WebDriverAgentRunner-BFD90DAE-28A0-4107-B595-EAAB6ADFD4A2.xctestconfiguration”;
[debug] [WebDriverAgent] Sim: “__XCODE_BUILT_PRODUCTS_DIR_PATHS” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: };
[debug] [WebDriverAgent] Sim: stderr = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: stdout = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: “wait_for_debugger” = 0;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:09:39 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0x962b] Sending request to open “com.apple.test.WebDriverAgentRunner-Runner”
[debug] [WebDriverAgent] Sim: Dec 2 13:09:39 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0x962b] Request successful: <FBSProcessHandle: 0x7b64ac40; XCTRunner:8771; valid: YES>
[debug] [WebDriverAgent] Sim: Dec 2 13:09:39 Akilan-MAC XCTRunner[8771]: assertion failed: 16B2659 14B72: libxpc.dylib + 68346 [360AA905-28A1-33CC-BB86-C4B516CCB1B0]: 0x7d
[debug] [WebDriverAgent] Sim: Dec 2 13:09:40 Akilan-MAC XCTRunner[8771]: Running tests…
[debug] [WebDriverAgent] Sim: Dec 2 13:09:42 Akilan-MAC XCTRunner[8771]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Dec 2 13:09:42 Akilan-MAC XCTRunner[8771]: Built at Dec 2 2016 13:09:29
[XCUITest] Detected that WebDriverAgent is running at url ‘http://172.25.80.102:8100
[debug] [WebDriverAgent] Sim: Dec 2 13:09:42 Akilan-MAC XCTRunner[8771]: ServerURLHere->http://172.25.80.102:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url ‘http://172.25.80.102:8100
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.lexi.Individual”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[debug] [WebDriverAgent] Sim: Dec 2 13:10:43 Akilan-MAC XCTRunner[8771]: Enqueue Failure: UI Testing Failure - App accessibility isn’t loaded /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
[debug] [WebDriverAgent] Sim: Dec 2 13:11:44 Akilan-MAC XCTRunner[8771]: Enqueue Failure: UI Testing Failure - ‘<XCUIApplicationImpl: 0x78f334b0 com.lexi.Individual>’ App state is still not running active, state = XCApplicationStateNotRunning /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“F3628AAF-15FA-406D-9F9A-A34D206B1487”,“value”:“Failed to launch com.lexi.Individual application”,“status”:13}
[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.lexi.Individual application
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 8628)
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[XCUITest] Shutting down Logger process (pid 8637)
[XCUITest] Simulator log exited with code ‘null’
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=DAB43CCF-E3FD-4317-BC39-24409AAAA37C -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/ADC08867-51B3-4942-9372-37DA731DE189/Session-WebDriverAgentRunner-2016-12-02_131206-THHPFL.log
[debug] [WebDriverAgent] Sim: Dec 2 13:12:06 Akilan-MAC CoreSimulatorBridge[5207]: Requesting installation of file:///usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
[debug] [WebDriverAgent] Sim: CFBundleIdentifier = “com.apple.test.WebDriverAgentRunner-Runner”;
[debug] [WebDriverAgent] Sim: PackageType = Developer;
[debug] [WebDriverAgent] Sim: SimulatorRootPath = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk”;
[debug] [WebDriverAgent] Sim: SimulatorUserPath = “/Users/WK/Library/Developer/CoreSimulator/Devices/DAB43CCF-E3FD-4317-BC39-24409AAAA37C/data”;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:12:13 Akilan-MAC CoreSimulatorBridge[5207]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
[debug] [WebDriverAgent] Sim: arguments = (
[debug] [WebDriverAgent] Sim: “-NSTreatUnknownArgumentsAsOpen”,
[debug] [WebDriverAgent] Sim: NO,
[debug] [WebDriverAgent] Sim: “-ApplePersistenceIgnoreState”,
[debug] [WebDriverAgent] Sim: YES
[debug] [WebDriverAgent] Sim: );
[debug] [WebDriverAgent] Sim: environment = {
[debug] [WebDriverAgent] Sim: “DTX_CONNECTION_SERVICES_PATH” = “/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework”;
[debug] [WebDriverAgent] Sim: “DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: “DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator:/Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: NSUnbufferedIO = YES;
[debug] [WebDriverAgent] Sim: “OS_ACTIVITY_DT_MODE” = YES;
[debug] [WebDriverAgent] Sim: “XCODE_DBG_XPC_EXCLUSIONS” = “com.apple.dt.xctestSymbolicator”;
[debug] [WebDriverAgent] Sim: XCTestConfigurationFilePath = “/var/folders/c5/skqqg9ld2b19t9jzh66y1_dm0000gq/T/com.apple.dt.XCTest/C860F676-6C75-437A-A933-21EB37930688/remote-container/tmp/WebDriverAgentRunner-C860F676-6C75-437A-A933-21EB37930688.xctestconfiguration”;
[debug] [WebDriverAgent] Sim: “__XCODE_BUILT_PRODUCTS_DIR_PATHS” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_FRAMEWORK_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_LIBRARY_PATH” = “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: };
[debug] [WebDriverAgent] Sim: stderr = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: stdout = “/dev/ttys000”;
[debug] [WebDriverAgent] Sim: “wait_for_debugger” = 0;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Dec 2 13:12:13 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0xf4fa] Sending request to open “com.apple.test.WebDriverAgentRunner-Runner”
[debug] [WebDriverAgent] Sim: Dec 2 13:12:13 Akilan-MAC CoreSimulatorBridge[5207]: [Common] [FBSSystemService][0xf4fa] Request successful: <FBSProcessHandle: 0x7c85c030; XCTRunner:8979; valid: YES>
[debug] [WebDriverAgent] Sim: Dec 2 13:12:13 Akilan-MAC XCTRunner[8979]: assertion failed: 16B2659 14B72: libxpc.dylib + 68346 [360AA905-28A1-33CC-BB86-C4B516CCB1B0]: 0x7d
[debug] [WebDriverAgent] Sim: Dec 2 13:12:13 Akilan-MAC XCTRunner[8979]: Running tests…
[debug] [WebDriverAgent] Sim: Dec 2 13:12:14 Akilan-MAC XCTRunner[8979]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Dec 2 13:12:15 Akilan-MAC XCTRunner[8979]: Built at Dec 2 2016 13:12:00
[XCUITest] Detected that WebDriverAgent is running at url ‘http://172.25.80.102:8100
[debug] [WebDriverAgent] Sim: Dec 2 13:12:15 Akilan-MAC XCTRunner[8979]: ServerURLHere->http://172.25.80.102:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url ‘http://172.25.80.102:8100
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.lexi.Individual”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}

.ipa files are typically compiled for ARM architecture (the processor iDevices use) but you are trying to run this on a simulator, which uses x86 architecture (the processor Macs use). I think the problem here is that you need to recompile this app for simulator in order to use it. Here are some pretty simple instructions to do that from the command line:

If you are not one of the developers, you may want to ask them for a simulator build. Feel free to send them the above link.

@wreed - Sure, i will ask them to create a new build for Simulator and keep you updated on my work. Thank you wreed!