{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5158","labels_url":"https://api.github.com/repos/appium/appium/issues/5158/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5158/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5158/events","html_url":"https://github.com/appium/appium/issues/5158","id":79820189,"number":5158,"title":"Could not pre-launch appium ","user":{"login":"valarmathivrv","id":9842215,"avatar_url":"https://avatars.githubusercontent.com/u/9842215?v=3","gravatar_id":"","url":"https://api.github.com/users/valarmathivrv","html_url":"https://github.com/valarmathivrv","followers_url":"https://api.github.com/users/valarmathivrv/followers","following_url":"https://api.github.com/users/valarmathivrv/following{/other_user}","gists_url":"https://api.github.com/users/valarmathivrv/gists{/gist_id}","starred_url":"https://api.github.com/users/valarmathivrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valarmathivrv/subscriptions","organizations_url":"https://api.github.com/users/valarmathivrv/orgs","repos_url":"https://api.github.com/users/valarmathivrv/repos","events_url":"https://api.github.com/users/valarmathivrv/events{/privacy}","received_events_url":"https://api.github.com/users/valarmathivrv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NoActivity","name":"NoActivity","color":"eb6420"},{"url":"https://api.github.com/repos/appium/appium/labels/NotABug","name":"NotABug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-23T11:27:10Z","updated_at":"2015-06-16T06:42:42Z","closed_at":null,"body":"1. I am using Xcode Version 6.3.2 and appium version 1.3.7.\r\n2. I am getting below defined error message, When I start appium server\r\n\r\nError Log:\r\n\r\nLaunching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --command-timeout \"7200\" --pre-launch --platform-version \"7.1.2\" --platform-name \"iOS\" --app \"com.vr.iphone.sampleApp\" --udid \"1c71d40a38f94c9e6682f5409e6ea6c0ec081736\" --show-ios-log --device-name \"iPhone 5s\" --isolate-sim-device\r\n\r\ninfo: [debug] Starting Appium in pre-launch mode\r\n\r\ninfo: Pre-launching app\r\n\r\ninfo: [debug] App is an iOS bundle, will attempt to run as pre-existing\r\ninfo: [debug] Creating new appium session a917afac-a070-4099-882d-5a3b0617a36c\r\n\r\ninfo: [debug] Removing any remaining instruments sockets\r\n\r\ninfo: [debug] Cleaned up instruments socket /tmp/instruments_sock\r\ninfo: [debug] Setting Xcode folder\r\n\r\ninfo: [debug] Setting Xcode version\r\n\r\ninfo: [debug] Setting iOS SDK Version\r\n\r\ninfo: [debug] Getting sdk version from xcrun with a timeout\r\n\r\ninfo: [debug] iOS SDK Version set to 8.3\r\n\r\ninfo: [debug] Not checking whether simulator is available since we're on a real device\r\ninfo: [debug] Detecting automation tracetemplate\r\n\r\ninfo: [debug] Not auto-detecting udid, running on sim\r\n\r\ninfo: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.vr.iphone.sampleApp/en.lproj/Localizable.strings\r\ninfo: Will try to parse the plist file as XML\r\ninfo: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.vr.iphone.sampleApp/en.lproj/Localizable.strings\r\nwarn: Could not parse app Localizable.strings assuming it doesn't exist\r\ninfo: [debug] Creating instruments\r\ninfo: 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\r\ninfo: [debug] Preparing uiauto bootstrap\r\ninfo: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap\r\n\r\ninfo: [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\"}\r\n\r\ninfo: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!\r\n...\r\ninfo: [debug] Dynamic bootstrap path: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js\r\ninfo: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js\r\ninfo: [debug] Getting device string from opts: {\"forceIphone\":false,\"forceIpad\":false,\"xcodeVersion\":\"6.3.2\",\"iOSSDKVersion\":\"8.3\",\"deviceName\":\"iPhone 5s\",\"platformVersion\":\"7.1.2\"}\r\ninfo: [debug] fixDevice is on\r\ninfo: [debug] Final device string is: 'iPhone 5s (7.1.2 Simulator)'\r\ninfo: [debug] Not setting device type since we're on a real device\r\ninfo: [debug] Checking whether we need to set app preferences\r\ninfo: [debug] Not setting iOS and app preferences since we're on a real device\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killall iOS Simulator\r\n\r\ninfo: [debug] Killing any other simulator daemons\r\n\r\ninfo: [debug] On a real device; cannot clean device state\r\n\r\ninfo: [debug] Not setting locale because we're using a real device\r\ninfo: [debug] No iOS / app preferences to set\r\ninfo: [debug] Starting iOS device log capture via deviceconsole\r\n\r\ninfo: [debug] Not pre-launching simulator\r\n\r\ninfo: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736\r\ninfo: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.com.vr.iphone.sampleApp\r\n\r\ninfo: [debug] App is not installed. Will try to install the app.\r\n\r\ninfo: [debug] Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle \"com.vr.iphone.sampleApp\"\r\n\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13ce22890> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:457)] [fd=12] [pid=116 (mobile_installation_proxy fd=5)] [hb=59291375123]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13ce22890> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:457)] [fd=12] [pid=116 (mobile_installation_proxy fd=5)] [hb=59291375123]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01f84000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13ce14de0> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:60872] [fd=14]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13ce22890> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:457)] [fd=12] [pid=116 (mobile_installation_proxy fd=5)] [hb=59291375123]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13ce228c0> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:1225)] [fd=12] [pid=101 (afcd fd=8)] [hb=59308567985]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13ce228c0> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:1225)] [fd=12] [pid=101 (afcd fd=8)] [hb=59308567985]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01efc000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13ce14de0> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:60872] [fd=14]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13ce228c0> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:1225)] [fd=12] [pid=101 (afcd fd=8)] [hb=59308567985]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13ce228c0> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:1225)] [fd=12] [pid=101 (afcd fd=8)] [hb=59308567985]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01efc000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13ce14de0> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:60872] [fd=14]\r\ninfo: [IOS_SYSLOG_ROW ] May 23 16:45:23 P-v-iphone-5s lockdownd[25] <Notice>: 01bcc000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13ce228c0> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:1225)] [fd=12] [pid=101 (afcd fd=8)] [hb=59308567985]\r\n\r\ninfo: [debug] Cleaning up appium session\r\n\r\nerror: Could not pre-launch appium: Error: Unable to install [com.vr.iphone.sampleApp] to device with id [1c71d40a38f94c9e6682f5409e6ea6c0ec081736]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle \"com.vr.iphone.sampleApp\"\r\nAssertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.\r\n]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/112310822","html_url":"https://github.com/appium/appium/issues/5158#issuecomment-112310822","issue_url":"https://api.github.com/repos/appium/appium/issues/5158","id":112310822,"user":{"login":"valarmathivrv","id":9842215,"avatar_url":"https://avatars.githubusercontent.com/u/9842215?v=3","gravatar_id":"","url":"https://api.github.com/users/valarmathivrv","html_url":"https://github.com/valarmathivrv","followers_url":"https://api.github.com/users/valarmathivrv/followers","following_url":"https://api.github.com/users/valarmathivrv/following{/other_user}","gists_url":"https://api.github.com/users/valarmathivrv/gists{/gist_id}","starred_url":"https://api.github.com/users/valarmathivrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valarmathivrv/subscriptions","organizations_url":"https://api.github.com/users/valarmathivrv/orgs","repos_url":"https://api.github.com/users/valarmathivrv/repos","events_url":"https://api.github.com/users/valarmathivrv/events{/privacy}","received_events_url":"https://api.github.com/users/valarmathivrv/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T06:42:42Z","updated_at":"2015-06-16T06:42:42Z","body":"@sebv , I have  tried with instruments also,but I can't able to inspect the iOS app."}}