Appium not launching app on real iOS device - Connection peer refused channel request for

Hello all

I’ve looked through the discussions and haven’t found a solution for the issue(s) I’m seeing with Appium.

Yesterday everything was working fine (finally after a month of reading about similar errors and trying different solutions) and then today its not working again.

I installed the testing environment (eclipse, appium, maven, xcode etc) last month so everything should be up to date. Android automation works fine on a real device. I have not successfully run any tests on iOS.

I receive this error when launching the Appium Inspector and when running the code to launch the app from Eclipse

“Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7f8d9e47c560>”

Here are desired capabilities I have set up in Eclipse
DesiredCapabilities cap=new DesiredCapabilities();
File f=new File ("/Users/xxxxxxx/Downloads/xxxxxxxx.ipa");
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, “9.2.1”);
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 5”);
cap.setCapability(MobileCapabilityType.BROWSER_NAME, “”);
cap.setCapability(MobileCapabilityType.APP, f.getAbsolutePath());
IOSDriver driver= new IOSDriver(new URL(“http://127.0.0.1:4723/wd/hub”),cap);
cap.setCapability(“autoAcceptAlerts”, true);

In the Appum iOS Settings I have “Use Native Instruments Library” checked and “–native-instruments-lib” added to the Developer Settings.

Please help, this is excruciating.

Appium Logs (replaced some info with xxxxx):
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --debug-log-spacing --platform-version “8.1” --platform-name “iOS” --app “/Users/xxxxxxx/Downloads/LetsGrub-10.ipa” --udid “xxxxxxxxxxxxxx” --full-reset --show-ios-log --device-name “iPhone 6” --native-instruments-lib --native-instruments-lib

info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)

info: Appium REST http interface listener started on 0.0.0.0:4723

info: [debug] Non-default server args: {“app”:"/Users/xxxxxxx/Downloads/LetsGrub-10.ipa",“udid”:“xxxxxxxxxxxxxx”,“fullReset”:true,“nativeInstrumentsLib”:true,“deviceName”:“iPhone 6”,“platformName”:“iOS”,“platformVersion”:“8.1”,“showIOSLog”:true,“defaultCommandTimeout”:7200,“debugLogSpacing”:true}
info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 9.734 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 3.709 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/xxxxxxx/Downloads/LetsGrub-10.ipa",“browserName”:"",“platformName”:“iOS”,“deviceName”:“iPhone 5”,“platformVersion”:“9.2.1”}}

info: Client User-Agent string: Apache-HttpClient/4.5.1 (Java/1.8.0_65)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************

info: [debug] Using local .ipa from desired caps: /Users/xxxxxxx/Downloads/LetsGrub-10.ipa
info: [debug] Copying local zip to tmp dir

info: [debug] /Users/xxxxxxx/Downloads/LetsGrub-10.ipa copied to /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/appium-app.zip

info: [debug] Unzipping /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/appium-app.zip

info: [debug] Testing zip archive: /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful

info: [debug] Using locally extracted app: /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/Payload/LetsGrub.app
info: [debug] Creating new appium session b1aad750-ba47-4777-a14a-526f1aef4253

info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/Payload/LetsGrub.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /var/folders/bp/0p91wm_d0pz6ms3qb199jymc0000gn/T/11624-904-1ujga4l/Payload/LetsGrub.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/xxxxxxx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/xxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Reusing dynamic bootstrap: /Users/xxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid xxxxxxxxxxxxxx

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:36 xxxxxxxs-iPhone syslog_relay[1458] : syslog_relay read 51 total bytes:

info: [IOS_SYSLOG_ROW ] ========================
info: [IOS_SYSLOG_ROW ] ASL is here to serve you
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:36 xxxxxxxs-iPhone syslog_relay[1458] : syslog_relay found the ASL prompt. Starting…

info: [debug] App is installed.

info: [debug] fullReset requested. Forcing app install.
info: [debug] Installing ipa found at /Users/xxxxxxx/Downloads/LetsGrub-10.ipa

info: [debug] Bundle found on device, removing before reinstalling.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:40 xxxxxxxs-iPhone lsd[1289] : LaunchServices: Unentitled vendor device identifier lookup for app com.xxxxxxxapp by pid 1460

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:40 xxxxxxxs-iPhone mobile_installation_proxy[1460] : LaunchServices: Uninstalling app <LSApplicationProxy: 0x156526c0> com.xxxxxxxapp <file:///private/var/mobile/Containers/Bundle/Application/E9D226A1-6139-40C3-A268-1F58EBC34225/LetsGrub.app>

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:40 xxxxxxxs-iPhone installd[1254] : 0x40081000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by mobile_installation_proxy (pid 1460) for identifier com.xxxxxxxapp with options: (null)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:40 xxxxxxxs-iPhone installd[1254] : 0x40081000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.xxxxxxxapp

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:41 xxxxxxxs-iPhone installd[1254] : 0x40081000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.xxxxxxxapp at /private/var/mobile/Containers/Bundle/Application/E9D226A1-6139-40C3-A268-1F58EBC34225

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:41 xxxxxxxs-iPhone installd[1254] : 0x40081000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.xxxxxxxapp at /private/var/mobile/Containers/Data/Application/4F69A092-75AF-4E95-A3E9-85AA701D8A54

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:41 xxxxxxxs-iPhone pkd[1362] : releasing plug-in hold D75B1288-E915-41AE-8EC3-E425939478FC at client’s request

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:41 xxxxxxxs-iPhone mobile_installation_proxy[1460] : LaunchServies: No placeholder bundle to remove for com.xxxxxxxapp.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:41 xxxxxxxs-iPhone lsd[1289] : LaunchServices: Updating identifier store

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:42 xxxxxxxs-iPhone syncdefaultsd[1492] : (Note ) marked “com.me.keyvalueservice” topic as “opportunistic” on <APSConnection: 0x15d2c4b0>

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:42 xxxxxxxs-iPhone SpringBoard[1259] : Installed apps did change.

info: [IOS_SYSLOG_ROW ] Added: {(
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Removed: {(
info: [IOS_SYSLOG_ROW ] “com.xxxxxxxapp”
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Modified: {(
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:42 xxxxxxxs-iPhone SpringBoard[1259] : Reloading and rendering all application icons.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:42 xxxxxxxs-iPhone SpringBoard[1259] : could not find icon for representation -> com.xxxxxxxapp

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:42 xxxxxxxs-iPhone syncdefaultsd[1492] : (Note ) marked “com.me.keyvalueservice” topic as “enabled” on <APSConnection: 0x15d2c4b0>

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:43 xxxxxxxs-iPhone SpringBoard[1259] : Reply Error: Connection interrupted

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:43 xxxxxxxs-iPhone searchd[1360] : ====^^^^ DuetExpert missing data, count -> people:8 applicationDeepLinks:0 applications:8 requests:13 missingAllDataRequests:0

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40115000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40115000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40115000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone notification_proxy[1459] : 0x40197000 notification_callback: No listeners for com.apple.mobile.application_uninstalled
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Current mcc: ‘311’ simulated:‘0’.
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Received timezone “America/Los_Angeles” from “Location” with mcc 311
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:44 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Not setting time zone to America/Los_Angeles from LocationAndNetwork because time zone is unchanged

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:45 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.21min. Need active time in 8332.88min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:45 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795005.7) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:45 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:46 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.35min. Need active time in 8333.01min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:46 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795006.7) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:46 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:47 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.41min. Need active time in 8333.07min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:47 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795007.8) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:47 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:48 xxxxxxxs-iPhone mobile_installation_proxy[1460] : LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x15544770> com.xxxxxxxapp <(null) Not found in database>

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:48 xxxxxxxs-iPhone mobile_installation_proxy[1460] : LaunchServices: Not creating progress for <LSApplicationProxy: 0x15544770> com.xxxxxxxapp <(null) Not found in database> since it is not a placeholder.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:48 xxxxxxxs-iPhone installd[1254] : 0x40081000 -[MIClientConnection installPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/com.xxxxxxxapp” type Customer (LSInstallType = (null)) requested by mobile_installation_proxy (pid 1460)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:48 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.42min. Need active time in 8333.09min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:48 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795009.0) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:49 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:49 xxxxxxxs-iPhone ABLE[1354] : Current charge is 100.000000

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone installd[1254] : 0x416eb000 -[MIInstaller performInstallationWithError:]: Installing

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone profiled[1355] : (Note ) MC: Provisioning profiles changed

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone profiled[1355] : (Note ) MC: Updating MIS trust…

info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone securityd[1294] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone securityd[1294] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
info: [IOS_SYSLOG_ROW ] Mar 4 06:36:58 xxxxxxxs-iPhone installd[1254] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:00 xxxxxxxs-iPhone installd[1254] : 0x416eb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxapp at /private/var/mobile/Containers/Data/Application/42085455-B21A-4EA9-9D49-FCA925C68881

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:00 xxxxxxxs-iPhone installd[1254] : 0x416eb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxapp at /private/var/mobile/Containers/Bundle/Application/3BCA3763-2270-4347-A9F4-9A2143EE9C01

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:00 xxxxxxxs-iPhone installd[1254] : 0x416eb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 9.52s; Waiting: 0.00s; Preflight/Patch: 0.11s, Verifying: 2.33s; Overall: 12.07s

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:00 xxxxxxxs-iPhone lsd[1289] : LaunchServices: Updating identifier store

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:01 xxxxxxxs-iPhone online-auth-agent[1391] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:01 xxxxxxxs-iPhone SpringBoard[1259] : Installed apps did change.

info: [IOS_SYSLOG_ROW ] Added: {(
info: [IOS_SYSLOG_ROW ] “com.xxxxxxxapp”
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Removed: {(
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Modified: {(
info: [IOS_SYSLOG_ROW ] )}

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:01 xxxxxxxs-iPhone SpringBoard[1259] : Unable to simultaneously satisfy constraints.

info: [IOS_SYSLOG_ROW ] Probably at least one of the constraints in the following list is one you don’t want.
info: [IOS_SYSLOG_ROW ] Try this:
info: [IOS_SYSLOG_ROW ] (1) look at each constraint and try to figure out which you don’t expect;
info: [IOS_SYSLOG_ROW ] (2) find the code that added the unwanted constraint or constraints and fix it.
info: [IOS_SYSLOG_ROW ] (
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x18064db0 UILabel:0x181db0d0’NEARBY’.leading == SPUISearchTableHeaderView:0x1816bf00.leadingMargin>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x18004720 SPUISearchTableHeaderView:0x1816bf00.trailingMargin == UILabel:0x181db0d0’NEARBY’.trailing>”,

info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x18178260 ‘UIView-Encapsulated-Layout-Width’ H:[SPUISearchTableHeaderView:0x1816bf00(0)]>”
info: [IOS_SYSLOG_ROW ] )
info: [IOS_SYSLOG_ROW ] Will attempt to recover by breaking constraint
info: [IOS_SYSLOG_ROW ] <NSLayoutConstraint:0x18004720 SPUISearchTableHeaderView:0x1816bf00.trailingMargin == UILabel:0x181db0d0’NEARBY’.trailing>
info: [IOS_SYSLOG_ROW ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
info: [IOS_SYSLOG_ROW ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:01 xxxxxxxs-iPhone SpringBoard[1259] : Unable to simultaneously satisfy constraints.
info: [IOS_SYSLOG_ROW ] Probably at least one of the constraints in the following list is one you don’t want.
info: [IOS_SYSLOG_ROW ] Try this:
info: [IOS_SYSLOG_ROW ] (1) look at each constraint and try to figure out which you don’t expect;
info: [IOS_SYSLOG_ROW ] (2) find the code that added the unwanted constraint or constraints and fix it.
info: [IOS_SYSLOG_ROW ] (
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x185e45b0 UILabel:0x18365d80’SIRI SUGGESTIONS’.leading == SPUISearchTableHeaderView:0x18365290.leadingMargin>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x185e4a70 H:[UILabel:0x18365d80’SIRI SUGGESTIONS’]-(NSSpace(8))-[UIButton:0x180ae6c0’Show More’]>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x185e4aa0 SPUISearchTableHeaderView:0x18365290.trailingMargin == UIButton:0x180ae6c0’Show More’.trailing>”,
info: [IOS_SYSLOG_ROW ] “<NSLayoutConstraint:0x185e4850 ‘UIView-Encapsulated-Layout-Width’ H:[SPUISearchTableHeaderView:0x18365290(0)]>”
info: [IOS_SYSLOG_ROW ] )
info: [IOS_SYSLOG_ROW ] Will attempt to recover by breaking constraint
info: [IOS_SYSLOG_ROW ] <NSLayoutConstraint:0x185e4a70 H:[UILabel:0x18365d80’SIRI SUGGESTIONS’]-(NSSpace(8))-[UIButton:0x180ae6c0’Show More’]>
info: [IOS_SYSLOG_ROW ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
info: [IOS_SYSLOG_ROW ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock

info: [debug] Starting instruments

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.43min. Need active time in 8333.10min. Remaining retry interval: 0.000000min.

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID xxxxxxxxxxxxxx
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w xxxxxxxxxxxxxx com.xxxxxxxapp -e UIASCRIPT “/Users/xxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795025.4) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.47min. Need active time in 8333.14min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795025.5) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:05 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:06 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.49min. Need active time in 8333.16min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:06 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795026.4) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:06 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Note ) CoreTime: Want active time in 41.50min. Need active time in 8333.17min. Remaining retry interval: 0.000000min.

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Warn ) CoreTime: Failed to update time

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Warn ) CoreTime: Failed to update time
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Warn ) CoreTime: Failed to update time

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Warn ) CoreTime: Failed to update time
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone UserEventAgent[1234] : validateAndAddDefaults(com.apple.timed): End Time (inf) > now (478795027.5) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:07 xxxxxxxs-iPhone timed[1252] : (Error) CoreTime: Error requesting proactive time check job

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:10 xxxxxxxs-iPhone kernel[0] : socketIsClosed sock_receive returned errno 54

info: [debug] [INST STDERR] 2016-03-04 06:37:10.625 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7f8d9e47c560>
2016-03-04 06:37:10.625 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.device.xpccontrol”; channel canceled <DTXChannel: 0x7f8d9e480be0>
info: [debug] [INST STDERR] 2016-03-04 06:37:10.626 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.deviceinfo”; channel canceled <DTXChannel: 0x7f8d9e4ab840>
2016-03-04 06:37:10.626 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol”; channel canceled <DTXChannel: 0x7f8d9e4abde0>
2016-03-04 06:37:10.626 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol.posixspawn”; channel canceled <DTXChannel: 0x7f8d9e4b01c0>
2016-03-04 06:37:10.626 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.mobilenotifications”; channel canceled <DTXChannel: 0x7f8d9e4b07d0>
2016-03-04 06:37:10.626 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.device.applictionListing”; channel canceled <DTXChannel: 0x7f8d9e4b0640>
2016-03-04 06:37:10.627 instruments[926:12879] Connection peer refused channel request for “com.apple.dt.Xcode.WatchProcessControl”; channel canceled <DTXChannel: 0x7f8d9e4ae8f0>
2016-03-04 06:37:10.627 instruments[926:12879] Connection peer refused channel request for “com.apple.instruments.server.services.wireless”; channel canceled <DTXChannel: 0x7f8d9e4afa70>
Instruments Usage Error : Specified target process is invalid: com.xxxxxxxapp
instruments, version 7.2 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]

info: [debug] [INSTSERVER] Instruments exited with code 255
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:10 xxxxxxxs-iPhone lockdownd[1243] : failed to get host service connection - invalid socket
info: [IOS_SYSLOG_ROW ] Mar 4 06:37:10 xxxxxxxs-iPhone notification_proxy[1459] : 0x40115000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:10 xxxxxxxs-iPhone gputoolsd[1493] : schedule invalidation <DYTransport 0x17d6ada0, error: lost transport connection (31)>

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:10 xxxxxxxs-iPhone gputoolsd[1493] : terminating daemon 0x17e6e4a0

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID xxxxxxxxxxxxxx

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w xxxxxxxxxxxxxx com.xxxxxxxapp -e UIASCRIPT “/Users/xxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}

info: [debug] [INST STDERR] 2016-03-04 06:37:16.778 instruments[932:12940] Failed to start Instruments daemon on ‘xxxxxxx’s iPhone (9.2.1)’ (Could not connect to the device.)

info: [debug] [INST STDERR] Instruments Usage Error : Specified target process is invalid: com.xxxxxxxapp
instruments, version 7.2 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:16 xxxxxxxs-iPhone notification_proxy[1459] : 0x40115000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [debug] [INSTSERVER] Instruments exited with code 255
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #2
info: [debug] Killall iOS Simulator

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID xxxxxxxxxxxxxx
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w xxxxxxxxxxxxxx com.xxxxxxxapp -e UIASCRIPT “/Users/xxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js” -e UIARESULTSPATH /tmp/appium-instruments

info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}

info: [debug] [INST STDERR] 2016-03-04 06:37:22.961 instruments[938:13023] Failed to start Instruments daemon on ‘xxxxxxx’s iPhone (9.2.1)’ (Could not connect to the device.)

info: [debug] [INST STDERR] Instruments Usage Error : Specified target process is invalid: com.xxxxxxxapp
instruments, version 7.2 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]

info: [IOS_SYSLOG_ROW ] Mar 4 06:37:22 xxxxxxxs-iPhone notification_proxy[1459] : 0x40081000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [debug] [INSTSERVER] Instruments exited with code 255
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #3
info: [debug] Killall iOS Simulator

If it worked once but not at any other time and you are getting connection errors I would think that you might have a bad cable or usb port. You don’t mention trying different ports/cables, so why not give that a try?

Also, you don’t mention if you’ve enabled UI Automation on this device so I’ll go ahead and ask if you did. On iOS 9 you need to power down the device, plug it into the Mac with Xcode on it & power it up. You should now see a ‘Developer’ setting, and inside that, ‘Enable UI Automation’.

Thank you wreed. I have UI Automation enabled on this device but I have not tried different cables. I will go ahead and give that a try and let you know how that works out. Thank you very much for this suggestion.

I have now tried with a legitimate iOS cable and the previous cable I was using. The issue has has worsened in that before it would install the app and now it is not getting that far. I tried the old cable gain but I’m getting the same (new) error below. Keep in mind I have changed nothing other than a cable but every time i power up my machine and try to launch the inspector or run the code from eclipse then Appium or iOS throws a new error. It’s very inconsistent.

Excerpt from Logs:
info: [IOS_SYSLOG_ROW ] Mar 4 18:46:41 xxxxxxxxs-iPhone gputoolsd[214] : <DYLockdownTransport: 0x1763eee0>: read io failure: Connection reset by peer (54)
error: Failed to start an Appium session, err was: Error: Installing xxxxxxxx failed

Full Logs:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --debug-log-spacing --platform-version “8.1” --platform-name “iOS” --app “xxxxxxxx” --udid “xxxxxxxx” --full-reset --show-ios-log --device-name “iPhone 6” --native-instruments-lib --native-instruments-lib

info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)

info: Appium REST http interface listener started on 0.0.0.0:4723

info: [debug] Non-default server args: {“app”:“xxxxxxxx”,“udid”:“xxxxxxxx”,“fullReset”:true,“nativeInstrumentsLib”:true,“deviceName”:“iPhone 6”,“platformName”:“iOS”,“platformVersion”:“8.1”,“showIOSLog”:true,“defaultCommandTimeout”:7200,“debugLogSpacing”:true}

info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 9.758 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 4.086 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/sessions {}

info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 1.231 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.1”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“iPhone 6”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/760.2.6 Darwin/15.2.0 (x86_64)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***

info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session b22c807d-ced4-45c0-97af-279de8513c90
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/xxxxxxxx/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/xxxxxxxx/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/xxxxxxxx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/xxxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/xxxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid xxxxxxxx

info: [debug] App is not installed. Will try to install the app.

info: [IOS_SYSLOG_ROW ] Mar 4 18:46:38 xxxxxxxxs-iPhone syslog_relay[209] : syslog_relay read 51 total bytes:

info: [IOS_SYSLOG_ROW ] ========================
info: [IOS_SYSLOG_ROW ] ASL is here to serve you

info: [IOS_SYSLOG_ROW ] Mar 4 18:46:38 xxxxxxxxs-iPhone syslog_relay[209] : syslog_relay found the ASL prompt. Starting…

info: [IOS_SYSLOG_ROW ] Mar 4 18:46:41 xxxxxxxxs-iPhone gputoolsd[214] : <DYLockdownTransport: 0x1763eee0>: read io failure: Connection reset by peer (54)

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Installing xxxxxxxx failed

info: [debug] Error: Installing xxxxxxxx failed
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/node-idevice/main.js:159:6
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Installing xxxxxxxx failed)”,“origValue”:“Installing xxxxxxxx failed”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 3808.908 ms - 184
info: [IOS_SYSLOG_ROW ] Mar 4 18:46:41 xxxxxxxxs-iPhone gputoolsd[214] : schedule invalidation <DYTransport 0x1763eee0, error: lost transport connection (31)>
info: [IOS_SYSLOG_ROW ] Mar 4 18:46:41 xxxxxxxxs-iPhone gputoolsd[214] : terminating daemon 0x1763ecd0
info: [IOS_SYSLOG_ROW ] Mar 4 18:46:41 xxxxxxxxs-iPhone mobile_installation_proxy[205] : 0x40115000 handle_connection: Could not receive request from host.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}
info: <-- GET /wd/hub/status 200 1.168 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

It’s very strange. Does this happen with any device or just this one?

Also, is this a test device (as in, it’s never left the lab)? I had a problem with my personal iPhone that it started intermittantly connect/charge/sync & it turned out to be a bunch of junk in the hole where the cable plugs in. I use a toothpick and (carefully) removed it all & the device went back to normal, but I had a couple of head scratching days before that.

Thanks for your suggestion. I was able to get things working. However, whenever I restarted my computer and started appium back up the issue came back. Eventually I narrowed down steps that if followed got things going every time. I haven’t narrowed down where the issue is exactly just yet as it’s taken a few hours to find steps that consistently work but at least I can move forward. Thanks for your help! (note: it may have to do with the cable as I’m making sure I plug it in a specific way each time)

I’m glad you were able to get things working. This is certainly a strange issue. If you do figure out more please post here.