Error: Could not pre-launch appium: Error: Installing

Hi not able to launch ios app getting following error “Could not pre-launch appium: Error: Installing”:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “10.9.9.11” --port “4730” --command-timeout “100000” --pre-launch --debug-log-spacing --platform-version “8.1.1” --platform-name “iOS” --app “/Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app” --udid “fd81fdc99dedbe933940356fa3f0e0770efe01ac” --show-ios-log --default-device

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

info: Pre-launching app

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 app from command line: /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app
info: [debug] Creating new appium session 49107215-60fc-4b7d-a0da-013b795a2ebd
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 /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.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 /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.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/emuser/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/emuser/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/emuser/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 fd81fdc99dedbe933940356fa3f0e0770efe01ac

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

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Installing /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app failed

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “10.9.9.11” --port “4730” --command-timeout “100000” --pre-launch --debug-log-spacing --platform-version “8.1.1” --platform-name “iOS” --app “/Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app” --udid “fd81fdc99dedbe933940356fa3f0e0770efe01ac” --show-ios-log --default-device --native-instruments-lib

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

info: Pre-launching app

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 app from command line: /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app
info: [debug] Creating new appium session 76885e05-c69e-434e-8a09-55c950895e3f
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 /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.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 /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.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/emuser/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/emuser/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/emuser/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 fd81fdc99dedbe933940356fa3f0e0770efe01ac

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

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Installing /Users/emuser/Library/Developer/Xcode/DerivedData/MagicApp-fzakzfsmygvefdfgrzwjjhufcqzx/Build/Products/Debug-iphoneos/PROJECT_TARGET.app failed

MAC Machine Ver 10.11.5 , Xcode ver 7.3.1 , Appium Ver 1.4.13

Is this really the name of your app? This doesn’t look correct. I think if you can get the real name of the app you’ll get past this current problem.

Hi ,
thanks for replay,

Yes , that’s app name , it was working properly for xcode ver 7.3.1 before installing the xcode 8 beta for ios 10 , but after that i am facing this issue even for the previous xcode ver 7.3.1 , even i completely uninstall all the xcode , and reinstall fresh xcode ver 7.3.1 again but nothing helps.

Wow, Ok. You think it’s an Xcode 8 issue. Probably right, but you should have stated that in the original question. I haven’t tried this, but I’m very cautious about using beta software in a production environment. Can you switch to a different machine?