Appium app not finding plist when running inspector


#1

I am trying to run inspector on appium app but had no luck yet. I have configured everything correctly in the app settings and when I try to run inspector it fails with an error regarding not finding plist file. I am not able to figure out what is causing it.

here is what the log says:

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --command-timeout “7200” --platform-version “8.1” --platform-name “iOS” --app “RTS.Wawanesa.iphone” --show-ios-log --device-name “iPhone 5”

info: Welcome to Appium v1.3.5 (REV a124a15677e26b33db16e81c4b3b34d9c6b8cac9)

info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“app”:“RTS.Wawanesa.iphone”,“address”:“127.0.0.1”,“deviceName”:“iPhone 5”,“platformName”:“iOS”,“platformVersion”:“8.1”,“showIOSLog”:true,“defaultCommandTimeout”:7200}
info: Console LogLevel: debug

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

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

info: <-- GET /wd/hub/status 200 10.026 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.5”,“revision”:“a124a15677e26b33db16e81c4b3b34d9c6b8cac9”}}}

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.5”,“revision”:“a124a15677e26b33db16e81c4b3b34d9c6b8cac9”}}}
info: <-- GET /wd/hub/status 200 4.316 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.5”,“revision”:“a124a15677e26b33db16e81c4b3b34d9c6b8cac9”}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 1.757 ms - 23 {“status”:0,“value”:[]}

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

info: Client User-Agent string: Appium (unknown version) CFNetwork/720.2.4 Darwin/14.1.0 (x86_64)
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 3fbcb7c2-4a96-4ee9-9ed9-2a2cb4d588e8
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] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] iOS sim UDID is C512182D-AD14-4111-A55F-CF15C1A22186
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/RTS.Wawanesa.iphone/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/RTS.Wawanesa.iphone/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/slotey/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”:“oneByOne”}

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

error: Could not set the device type in Info.plist

info: [debug] Dynamic bootstrap path: /Users/slotey/Library/Application Support/appium/bootstrap/bootstrap-516354d056bc7b25.js
info: [debug] Reusing dynamic bootstrap: /Users/slotey/Library/Application Support/appium/bootstrap/bootstrap-516354d056bc7b25.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] We’re on iOS7.1+ so forcing defaultDevice on
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist
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/RTS.Wawanesa.iphone/Info.plist
info: [debug] Cleaning up appium session
info: [debug] Error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist’
at Error (native)
at Object.fs.openSync (fs.js:502:18)
at Object.fs.readFileSync (fs.js:354:15)
at parseXmlPlistFile (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:37:25)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:50:7
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/bplist-parser/bplistParser.js:32:25
at fs.js:265:20
at FSReqWrap.oncomplete (fs.js:99:15)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist’)”,“errno”:-2,“code”:“ENOENT”,“path”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist",“syscall”:“open”,“origValue”:“ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 895.387 ms - 530

error: Failed to start an Appium session, err was: Error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/RTS.Wawanesa.iphone/Info.plist’


#2

Fixed it by removing bundle id in the settings.


#3

Appium UI inspector was not able to install the app. Already installed app from xcode was able to launch.

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.0” --platform-name “iOS” --app “com.logitech.harmonyremote” --udid “a8d6f7210962a40203e43cc29f226b24200ae6ff” --show-ios-log --device-name “iPhone 5”

info: Welcome to Appium v1.4.8 (REV c8179bd8352d3c62d98fa58b324491230df9342a)

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

info: [debug] Non-default server args: {“app”:“com.logitech.harmonyremote”,“udid”:“a8d6f7210962a40203e43cc29f226b24200ae6ff”,“deviceName”:“iPhone 5”,“platformName”:“iOS”,“platformVersion”:“8.0”,“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.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”}}}

info: <-- GET /wd/hub/status 200 15.408 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”}}}

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

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

info: <-- GET /wd/hub/status 200 6.251 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”}}}

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

info: [debug] Responding to client with success: {“status”:0,“value”:[]}

info: <-- GET /wd/hub/sessions 200 1.609 ms - 23 {“status”:0,“value”:[]}

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

info: Client User-Agent string: Appium (unknown version) CFNetwork/673.6 Darwin/13.4.0 (x86_64) (MacBookAir4%2C2)

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 d9bfe341-8863-45f3-8220-6234ebaf38d4

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/com.logitech.harmonyremote/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.logitech.harmonyremote/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/logitech/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/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js

info: [debug] Reusing dynamic bootstrap: /Users/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js

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

info: [debug] Creating iDevice object with udid a8d6f7210962a40203e43cc29f226b24200ae6ff

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

info: <-- GET /wd/hub/status 200 2.359 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

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: On xcode 6.0, instruments-without-delay does not work. If using appium, you can disable instruments-without-delay with the --native-instruments-lib server flag

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 a8d6f7210962a40203e43cc29f226b24200ae6ff

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 a8d6f7210962a40203e43cc29f226b24200ae6ff com.logitech.harmonyremote -e UIASCRIPT “/Users/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.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-07-27 19:45:13.444 instruments[9243:1307] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier ‘com.logitech.harmonyremote’

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

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 ] Jul 27 19:45:14 Vikas-Chandras-iPhone kernel[0] : IOReturn IOAsynchronousScheduler::checkAndQueueArgument(IOAsynchronousScheduler::ArgumentEntry *): max argument count (128) reached. Notify a few first.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone SpringBoard[54] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone SpringBoard[54] : [FBSystemService] Error launching com.logitech.harmonyremote: NotFound (4)

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone notification_proxy[655] : 0x10040c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:13 Vikas-Chandras-iPhone notification_proxy[655] : 0x10040c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

info: <-- GET /wd/hub/status 200 2.468 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:16 Vikas-Chandras-iPhone locationd[61] : client ‘/System/Library/PrivateFrameworks/AssistantServices.framework’ stopping significant location changes

info: Launching instruments

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

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 a8d6f7210962a40203e43cc29f226b24200ae6ff com.logitech.harmonyremote -e UIASCRIPT “/Users/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.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-07-27 19:45:19.883 instruments[9260:4c0b] WebKit Threading Violation - initial use of WebKit from a secondary thread.

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

info: <-- GET /wd/hub/status 200 2.654 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.8”,“revision”:“c8179bd8352d3c62d98fa58b324491230df9342a”},“isShuttingDown”:false},“sessionId”:“d9bfe341-8863-45f3-8220-6234ebaf38d4”}

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:20 Vikas-Chandras-iPhone SpringBoard[54] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:20 Vikas-Chandras-iPhone SpringBoard[54] : [FBSystemService] Error launching com.logitech.harmonyremote: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier ‘com.logitech.harmonyremote’

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

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 ] Jul 27 19:45:20 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:20 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:20 Vikas-Chandras-iPhone notification_proxy[655] : 0x100384000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:20 Vikas-Chandras-iPhone notification_proxy[655] : 0x100384000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: Launching instruments

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

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 a8d6f7210962a40203e43cc29f226b24200ae6ff com.logitech.harmonyremote -e UIASCRIPT “/Users/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.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-07-27 19:45:26.312 instruments[9263:2207] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:26 Vikas-Chandras-iPhone SpringBoard[54] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:26 Vikas-Chandras-iPhone SpringBoard[54] : [FBSystemService] Error launching com.logitech.harmonyremote: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier ‘com.logitech.harmonyremote’

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

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 ] Jul 27 19:45:26 Vikas-Chandras-iPhone notification_proxy[655] : 0x100384000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:26 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:26 Vikas-Chandras-iPhone DTMobileIS[677] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:26 Vikas-Chandras-iPhone notification_proxy[655] : 0x1007a4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:30 Vikas-Chandras-iPhone kernel[0] : 065705.234208 wlan0.A[10778] AppleBCMWLANCore::dumpWmeCounters(): per AC tx counters: 285863 4989 43915 4037, rx counters: 432917 0 0 0

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:30 Vikas-Chandras-iPhone kernel[0] : 065705.234239 wlan0.A[10779] AppleBCMWLANCore::dumpWmeCounters(): AWDL: Tx 0 0 0 0 Rx: 0 0 0 0

info: Launching instruments

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

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 a8d6f7210962a40203e43cc29f226b24200ae6ff com.logitech.harmonyremote -e UIASCRIPT “/Users/logitech/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.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-07-27 19:45:32.549 instruments[9280:4b13] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:32 Vikas-Chandras-iPhone SpringBoard[54] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jul 27 19:45:32 Vikas-Chandras-iPhone SpringBoard[54] : [FBSystemService] Error launching com.logitech.harmonyremote: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier ‘com.logitech.harmonyremote’

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

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] Running ios sim reset flow

info: [debug] Killing the simulator process

info: [debug] Killing any other simulator daemons

info: [debug] Killall iOS Simulator

info: [debug] On a real device; cannot clean device state

info: [debug] Cleaning up appium session

info: [debug] Error: Instruments crashed on startup

at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:440:31)

at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:353:12)

at ChildProcess.emit (events.js:110:17)

at Process.ChildProcess._handle.onexit (child_process.js:1074:12)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Instruments crashed on startup)”,“origValue”:“Instruments crashed on startup”},“sessionId”:null}

info: <-- POST /wd/hub/session 500 23347.701 ms - 182

error: Failed to start an Appium session, err was: Error: Instruments crashed on startup


#4

een branch in repository origin/master
Seen 1 remote branch
Checking out Revision 9bc0a8b1a24715fe0ddb8623ae5080cc9d2fce74 (origin/master)

git config core.sparsecheckout # timeout=10
git checkout -f 9bc0a8b1a24715fe0ddb8623ae5080cc9d2fce74
First time build. Skipping changelog.
[ios] $ /bin/bash /var/folders/hm/l1nmp7t15t9bfbs15gxydm7w0000gn/T/hudson4991529958658069072.sh
Invalid requirement: ‘IOS SDK==9.2’
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_install.py”, line 76, in init
req = pkg_resources.Requirement.parse(req)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py”, line 3036, in parse
req, = parse_requirements(s)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py”, line 2980, in parse_requirements
“version spec”)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py”, line 2945, in scan_list
raise RequirementParseError(msg, line, “at”, line[p:])
pip._vendor.pkg_resources.RequirementParseError: Expected version spec in IOS SDK==9.2 at SDK==9.2

You are using pip version 8.0.2, however version 8.1.0 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
e[36minfoe[39m: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
e[36minfoe[39m: Appium REST http interface listener started on 127.0.0.1:4723
e[36minfoe[39m: [debug] Non-default server args: {“app”:“Handstand.app”,“address”:“127.0.0.1”,“bootstrapPort”:4725,“sessionOverride”:true,“noReset”:true,“localTimezone”:true,“nativeInstrumentsLib”:true,“platformName”:“iOS”,“platformVersion”:“9.0”,“orientation”:“Portrait”,“showIOSLog”:true,“chromeDriverPort”:9516,“defaultCommandTimeout”:7200,“debugLogSpacing”:true}
e[36minfoe[39m: Console LogLevel: debug
e[36minfoe[39m: e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m e[90m{“desiredCapabilities”:{“platformVersion”:“9.0”,“autoAcceptAlerts”:“true”,“platformName”:“iOS”,“deviceName”:“iPhone 6s”}}e[39m
e[36minfoe[39m: Client User-Agent string: Python-urllib/2.7
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: **** NEW SESSION ***
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[36minfoe[39m: *************************************
e[33mwarne[39m: Converting cap autoAcceptAlerts from string to boolean. This might cause unexpected behavior.
e[36minfoe[39m: [debug] App is an iOS bundle, will attempt to run as pre-existing
e[36minfoe[39m: [debug] Creating new appium session 7c514e2d-cb85-4230-982c-3e47ac1c5b6e
e[36minfoe[39m: [debug] Removing any remaining instruments sockets
e[36minfoe[39m: [debug] Cleaned up instruments socket /tmp/instruments_sock
e[36minfoe[39m: [debug] Setting Xcode version
e[36minfoe[39m: [debug] Xcode version set to 7.2
e[36minfoe[39m: [debug] Setting iOS SDK Version
e[36minfoe[39m: [debug] iOS SDK Version set to 9.2
e[36minfoe[39m: [debug] Checking whether instruments supports our device string
e[36minfoe[39m: [debug] Getting list of devices instruments supports
e[36minfoe[39m: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
e[36minfoe[39m: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“7.2”,“iOSSDKVersion”:“9.2”,“deviceName”:“iPhone 6s”,“platformVersion”:“9.0”}
e[36minfoe[39m: [debug] fixDevice is on
e[36minfoe[39m: [debug] Final device string is: ‘iPhone 6s (9.0)’
e[36minfoe[39m: [debug] iOS sim UDID is 7BD7A7EA-3273-4C03-8DD4-A52FAAA2FF11
e[36minfoe[39m: [debug] Auto-detecting iOS udid…
e[36minfoe[39m: [debug] Not auto-detecting udid, running on sim
e[36minfoe[39m: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/en.lproj/Localizable.strings
e[36minfoe[39m: Will try to parse the plist file as XML
e[36minfoe[39m: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/en.lproj/Localizable.strings
e[33mwarne[39m: Could not parse app Localizable.strings assuming it doesn’t exist
e[36minfoe[39m: [debug] Creating instruments
e[36minfoe[39m: [debug] Preparing uiauto bootstrap
e[36minfoe[39m: [debug] Dynamic bootstrap dir: /Users/chennareddy/Library/Application Support/appium/bootstrap
e[36minfoe[39m: [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”:true,“autoDismissAlerts”:false,“sendKeyStrategy”:“oneByOne”}
e[36minfoe[39m: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

e[36minfoe[39m: [debug] Dynamic bootstrap path: /Users/chennareddy/Library/Application Support/appium/bootstrap/bootstrap-9a1136664d01e391.js
e[36minfoe[39m: [debug] Reusing dynamic bootstrap: /Users/chennareddy/Library/Application Support/appium/bootstrap/bootstrap-9a1136664d01e391.js
e[36minfoe[39m: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“7.2”,“iOSSDKVersion”:“9.2”,“deviceName”:“iPhone 6s”,“platformVersion”:“9.0”}
e[36minfoe[39m: [debug] fixDevice is on
e[36minfoe[39m: [debug] Final device string is: ‘iPhone 6s (9.0)’
e[36minfoe[39m: [debug] We’re on iOS7.1+ so forcing defaultDevice on
e[36minfoe[39m: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“7.2”,“iOSSDKVersion”:“9.2”,“deviceName”:“iPhone 6s”,“platformVersion”:“9.0”}
e[36minfoe[39m: [debug] fixDevice is on
e[36minfoe[39m: [debug] Final device string is: ‘iPhone 6s (9.0)’
e[36minfoe[39m: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist
e[36minfoe[39m: Will try to parse the plist file as XML
e[36minfoe[39m: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist
e[31merrore[39m: Could not set the device type in Info.plist
e[36minfoe[39m: [debug] Cleaning up appium session
e[31merrore[39m: Failed to start an Appium session, err was: Error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist’
e[36minfoe[39m: [debug] Error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist’
at Error (native)
at Object.fs.openSync (fs.js:500:18)
at Object.fs.readFileSync (fs.js:352:15)
at parseXmlPlistFile (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:38:25)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:51:7
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/bplist-parser/bplistParser.js:37:25
at fs.js:263:20
at FSReqWrap.oncomplete (fs.js:95:15)
e[36minfoe[39m: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist’)”,“errno”:-2,“code”:“ENOENT”,“path”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist",“syscall”:“open”,“origValue”:“ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist’”},“sessionId”:null}
Process Process-2:
Traceback (most recent call last):
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “/Users/chennareddy/.jenkins/workspace/ios/booking_simulator.py”, line 11, in init
e[36minfoe[39m: e[37m<-- POST /wd/hub/session e[39me[31m500e[39me[90m 10587.448 ms - 512e[39m e[90me[39m
self.setUp()
File “/Users/chennareddy/.jenkins/workspace/ios/booking_simulator.py”, line 21, in setUp
‘deviceName’: ‘iPhone 6s’ })
File “/usr/local/bin/appium/webdriver/webdriver.py”, line 36, in init
super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File “/usr/local/bin/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py”, line 87, in init
self.start_session(desired_capabilities, browser_profile)
File “/usr/local/bin/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py”, line 141, in start_session
‘desiredCapabilities’: desired_capabilities,
File “/usr/local/bin/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py”, line 201, in execute
self.error_handler.check_response(response)
File “/usr/local/bin/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py”, line 181, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: A new session could not be created. (Original error: ENOENT, no such file or directory ‘/Applications/Appium.app/Contents/Resources/node_modules/appium/Handstand.app/Info.plist’)

please reply what to do


#5

I’m also faced same problem, by removing bundle id scripts started working .
Thanks


#6

Hi Sudheer, could you advice how did you remove bundle id?