iOS 8.1 support in Appium?

I tried running a similar app in both iOS version 7 and iOS version 8 but,the app is not running on iOS 8.1.

The application is identified by appium in iOS v8.1 but crashes repeatedly…

Any solution?

I’m successfully using iOS8.1 simulators. However, I did experience this issue:

If you’re encountering that specific problem you’ll see some workarounds I’ve posted later in that thread.

@Christopher_Graham

Thanks for the link.
But in my case i dont see the problem is because of Alert notification. My app launches perfectly in IOS 7 devices,but not on iOS8. It repeatedly crashes .

Note:Launching the application manually works fine in iOS 8.

Could you help me with a direct workaround. Am i missing somewhere. Help is very much appreciated.

I don’t think you’ve provided enough specific detail for anyone to help you.

“It repeatedly crashes”

  • What crashes? Appium? Your app? Instruments?
  • Provide detailed Appium logs illustrating your error.

@Christopher_Graham

Okie, so let me be very clear

Appium verison 1.3.5 (updated Recently)

I am trying to run a sample app in my iOS device iPhone 6 version 8.1. I pushed the build from xcode and sure that all my developer identities are valid and working fine.

When i run in my app either in iOS simulator or Real Device (Verison 8.1) the app opens less than a second and again closes. This happens two times and below is the detailed Appium Log

But the same app works fine in iOS 7 devices. I wanted a quick workaround.
Is this information sufficient ?

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --port “4725” --command-timeout “10000” --pre-launch --platform-version “8.1” --platform-name “iOS” --app “com.lexisnexis.legal.mobile.MyFirstApp” --udid “b0362988da1bdb8755998a70afc425a4539e86b8” --no-reset --show-ios-log --device-name “iPhone 6 (2AAFAB59-5243-4BAE-85D1-16C9D0DA4391)”

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0349d548-b233-4ab3-bf4f-18bebff5782e

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.1

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

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/com.lexisnexis.legal.mobile.MyFirstApp/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/com.lexisnexis.legal.mobile.MyFirstApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/244325/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/node_modules/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/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js

info: [debug] Reusing dynamic bootstrap: /Users/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 6 (2AAFAB59-5243-4BAE-85D1-16C9D0DA4391)”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 6 (2AAFAB59-5243-4BAE-85D1-16C9D0DA4391) (8.1 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid b0362988da1bdb8755998a70afc425a4539e86b8

info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id b0362988da1bdb8755998a70afc425a4539e86b8 --bundle com.lexisnexis.legal.mobile.MyFirstApp

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

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

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 b0362988da1bdb8755998a70afc425a4539e86b8
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 b0362988da1bdb8755998a70afc425a4539e86b8 com.lexisnexis.legal.mobile.MyFirstApp -e UIASCRIPT “/Users/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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] 2015-02-24 10:58:49.607 instruments[66658:6394571] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [debug] [INST STDERR] 2015-02-24 10:58:50.613 instruments[66658:6394573] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-02-24 05:28:50 +0000 Fail: An error occurred while trying to run the script.

info: [debug] [INST] Instruments Trace Complete (Duration : 1.584481s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

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 ] Feb 24 10:58:48 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:48 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:49 S-Rajarajan-Cognizants-iPhone syslog_relay[141] : syslog_relay found the ASL prompt. Starting…

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:49 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:49 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:49 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:49 S-Rajarajan-Cognizants-iPhone mobile_installation_proxy[143] : 0x100530000 handle_connection: Could not receive request from host.
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:50 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:50 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:50 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:50 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Entitlement com.apple.multitasking.termination required to kill applications.
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : xpcproxy[266] Container: /private/var/mobile/Containers/Data/Application/5511CC46-E461-4286-820C-693319352581 (sandbox)
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : LICreateIconForImage passed NULL CGImageRef image
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone MyFirstApp[266] : assertion failed: 12B466: libxpc.dylib + 71820 [2A02E77C-4317-32E2-92FB-E37AF8747B2E]: 0x7d

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone Unknown[266] :
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone MyFirstApp[266] : Unknown class Button1 in Interface Builder file.
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ScriptAgent[267] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x1001d4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ScriptAgent[267] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ScriptAgent[267] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x1865f259c 0x196d3c0e4 0x1865f24dc 0x100127f28 0x100127e34 0x10007ba44 0x1874c5d90 0x1865aa9ec 0x1865a9c90 0x1865a7d40 0x1864d50a4 0x1873dd7a4 0x187437e98 0x100057648 0x1973aaa08)
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : ReportCrash acting against PID 267
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : Formulating crash report for process ScriptAgent[267]

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-02-24-105851_S-Rajarajan-Cognizants-iPhone.ips
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to get short BSD proc info for 266: No such process
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0x8b09][266]) : Service exited due to signal: Killed: 9
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Application ‘UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0x8b09]’ exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone assertiond[63] : pid_suspend failed for <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 266; hostpid: -1>: Unknown error: -1, Unknown error: -1
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 266; hostpid: -1> to 2, priority: No such process
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 266; hostpid: -1> to 4096, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone UserEventAgent[20] : id=com.lexisnexis.legal.mobile.MyFirstApp pid=266, state=0
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.launchdaemon
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x1001d4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:52 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x1001d4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: Launching instruments

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

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 b0362988da1bdb8755998a70afc425a4539e86b8 com.lexisnexis.legal.mobile.MyFirstApp -e UIASCRIPT “/Users/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 ] Feb 24 10:58:57 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:57 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-02-24 10:58:56.961 instruments[66663:6394793] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : xpcproxy[270] Container: /private/var/mobile/Containers/Data/Application/5511CC46-E461-4286-820C-693319352581 (sandbox)

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : LICreateIconForImage passed NULL CGImageRef image

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone MyFirstApp[270] : assertion failed: 12B466: libxpc.dylib + 71820 [2A02E77C-4317-32E2-92FB-E37AF8747B2E]: 0x7d

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone Unknown[270] :

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone MyFirstApp[270] : Unknown class Button1 in Interface Builder file.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ScriptAgent[271] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x1001d4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ScriptAgent[271] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ScriptAgent[271] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x1865f259c 0x196d3c0e4 0x1865f24dc 0x1000e3f28 0x1000e3e34 0x100037a44 0x1874c5d90 0x1865aa9ec 0x1865a9c90 0x1865a7d40 0x1864d50a4 0x1873dd7a4 0x187437e98 0x10000b648 0x1973aaa08)
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : ReportCrash acting against PID 271

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : Formulating crash report for process ScriptAgent[271]

info: [debug] [INST STDERR] 2015-02-24 10:58:57.730 instruments[66663:6394793] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-02-24 05:28:57 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone ReportCrash[268] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-02-24-105858_S-Rajarajan-Cognizants-iPhone.ips

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0x57f9][270]) : Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:58 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to get short BSD proc info for 270: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Application ‘UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0x57f9]’ exited abnormally via signal.

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone assertiond[63] : pid_suspend failed for <BKNewProcess: 0x13e61bbd0; com.lexisnexis.legal.mobile.MyFirstApp; pid: 270; hostpid: -1>: Unknown error: -1, Unknown error: -1

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e61bbd0; com.lexisnexis.legal.mobile.MyFirstApp; pid: 270; hostpid: -1> to 2, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e61bbd0; com.lexisnexis.legal.mobile.MyFirstApp; pid: 270; hostpid: -1> to 4096, priority: No such process
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone UserEventAgent[20] : id=com.lexisnexis.legal.mobile.MyFirstApp pid=270, state=0
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [debug] [INST] Instruments Trace Complete (Duration : 1.179429s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

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: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x100484000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:59 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x100484000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:04 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: Launching instruments

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

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 b0362988da1bdb8755998a70afc425a4539e86b8 com.lexisnexis.legal.mobile.MyFirstApp -e UIASCRIPT “/Users/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-02-24 10:59:04.380 instruments[66667:6394825] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone kernel[0] : xpcproxy[273] Container: /private/var/mobile/Containers/Data/Application/5511CC46-E461-4286-820C-693319352581 (sandbox)

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:05 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : LICreateIconForImage passed NULL CGImageRef image

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone MyFirstApp[273] : assertion failed: 12B466: libxpc.dylib + 71820 [2A02E77C-4317-32E2-92FB-E37AF8747B2E]: 0x7d
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone Unknown[273] :

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone MyFirstApp[273] : Unknown class Button1 in Interface Builder file.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ScriptAgent[274] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x1001d4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ScriptAgent[274] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ScriptAgent[274] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x1865f259c 0x196d3c0e4 0x1865f24dc 0x100113f28 0x100113e34 0x10007fa44 0x1874c5d90 0x1865aa9ec 0x1865a9c90 0x1865a7d40 0x1864d50a4 0x1873dd7a4 0x187437e98 0x10006f648 0x1973aaa08)

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : ReportCrash acting against PID 274

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : Formulating crash report for process ScriptAgent[274]

info: [debug] [INST STDERR] 2015-02-24 10:59:05.329 instruments[66667:6394826] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-02-24 05:29:05 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-02-24-105906_S-Rajarajan-Cognizants-iPhone.ips

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0xfcfd][273]) : Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to get short BSD proc info for 273: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Application ‘UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0xfcfd]’ exited abnormally via signal.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone assertiond[63] : pid_suspend failed for <BKNewProcess: 0x13e523140; com.lexisnexis.legal.mobile.MyFirstApp; pid: 273; hostpid: -1>: Unknown error: -1, Unknown error: -1
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e523140; com.lexisnexis.legal.mobile.MyFirstApp; pid: 273; hostpid: -1> to 2, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e523140; com.lexisnexis.legal.mobile.MyFirstApp; pid: 273; hostpid: -1> to 4096, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone UserEventAgent[20] : id=com.lexisnexis.legal.mobile.MyFirstApp pid=273, state=0
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:06 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [debug] [INST] Instruments Trace Complete (Duration : 1.439255s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

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
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:07 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:07 S-Rajarajan-Cognizants-iPhone DTMobileIS[184] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:07 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:07 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x100484000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:11 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: Launching instruments

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

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 b0362988da1bdb8755998a70afc425a4539e86b8 com.lexisnexis.legal.mobile.MyFirstApp -e UIASCRIPT “/Users/244325/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:12 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-02-24 10:59:12.121 instruments[66673:6395049] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone kernel[0] : xpcproxy[277] Container: /private/var/mobile/Containers/Data/Application/5511CC46-E461-4286-820C-693319352581 (sandbox)

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : LICreateIconForImage passed NULL CGImageRef image

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone MyFirstApp[277] : assertion failed: 12B466: libxpc.dylib + 71820 [2A02E77C-4317-32E2-92FB-E37AF8747B2E]: 0x7d
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone Unknown[277] :

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone MyFirstApp[277] : Unknown class Button1 in Interface Builder file.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone notification_proxy[138] : 0x10061c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:13 S-Rajarajan-Cognizants-iPhone ScriptAgent[278] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone ScriptAgent[278] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone ScriptAgent[278] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’

info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x1865f259c 0x196d3c0e4 0x1865f24dc 0x1000dbf28 0x1000dbe34 0x10003ba44 0x1874c5d90 0x1865aa9ec 0x1865a9c90 0x1865a7d40 0x1864d50a4 0x1873dd7a4 0x187437e98 0x100017648 0x1973aaa08)
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : ReportCrash acting against PID 278

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : Formulating crash report for process ScriptAgent[278]

info: [debug] [INST STDERR] 2015-02-24 10:59:13.064 instruments[66673:6395042] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-02-24 05:29:13 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone ReportCrash[275] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-02-24-105914_S-Rajarajan-Cognizants-iPhone.ips

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0xab57][277]) : Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to get short BSD proc info for 277: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Application ‘UIKitApplication:com.lexisnexis.legal.mobile.MyFirstApp[0xab57]’ exited abnormally via signal.

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone assertiond[63] : pid_suspend failed for <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 277; hostpid: -1>: Unknown error: -1, Unknown error: -1

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 277; hostpid: -1> to 2, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone assertiond[63] : Could not set priority of <BKNewProcess: 0x13e618080; com.lexisnexis.legal.mobile.MyFirstApp; pid: 277; hostpid: -1> to 4096, priority: No such process

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone UserEventAgent[20] : id=com.lexisnexis.legal.mobile.MyFirstApp pid=277, state=0

info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone SpringBoard[53] : Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
info: [IOS_SYSLOG_ROW ] Feb 24 10:59:14 S-Rajarajan-Cognizants-iPhone locationd[60] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [debug] [INST] Instruments Trace Complete (Duration : 1.560340s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

info: [debug] Killall instruments

info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Instruments crashed on startup

@Christopher_Graham i have provided the logs … could u please check and provide me a workaround

Note that I’m just a fairly new user and no expert, so the help I can personally offer is pretty limited. However, I saw this in your log:

info: [IOS_SYSLOG_ROW ] Feb 24 10:58:51 S-Rajarajan-Cognizants-iPhone ScriptAgent[267] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’

So, try this: Enable UI Automation in the device settings: Settings -> Developer -> Enable UI Automation.

I’m having issues with iOS 7.1 working and 8.1 giving me a black screen. I tried your (and all the other suggested) solutions Christopher_Graham, but none of them worked.

  • I’ve enabled Developer -> ui automation.
  • I removed the alert
  • I put a delay on the alert

and yet, App works fine in 7.1, but still gives a black screen on 8.1.

@Simon_K You should probably start your own thread. The issue I’m familiar with is the iOS8 Push Notifications dialog breaking Appium session start. Anything else is something different.

Always make sure to include as many pertinent details as possible just like you would if you were submitting a bug report against your AUT.

Appium Version
Client bindings and version
Host OS
Test device/sim and OS
Appium logs (really the most important as it has all of the debug logging)