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

Hi,

I am trying to build app using Appium GUI from extracted derived data as app_path, but getting this error error: Could not set the device type in Info.plist

Xcode : 6.4
Appium: 1.4.8
Iphone 5s simulator
platform version 8.4

Pls help me

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --command-timeout “7200” --pre-launch --debug-log-spacing --platform-version “8.4” --platform-name “iOS” --app “com.coupa.push” --show-ios-log --device-name “iPhone 5s” --native-instruments-lib --isolate-sim-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] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session f21710f0-24ae-46b6-900d-3932159d7ca3
info: [debug] Removing any remaining instruments sockets

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

info: [debug] Xcode version set to 6.4

info: [debug] Setting iOS SDK Version

info: [debug] iOS SDK Version set to 8.4

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.4”,“iOSSDKVersion”:“8.4”,“deviceName”:“iPhone 5s”,“platformVersion”:“8.4”}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.4 Simulator)’
info: [debug] iOS sim UDID is 7A52BA9E-2959-4CCF-A140-7112E696D336
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.coupa.push/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.coupa.push/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/mylaptop/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!

info: [debug] Dynamic bootstrap path: /Users/mylaptop/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js

info: [debug] Reusing dynamic bootstrap: /Users/mylaptop/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js

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

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.4”,“iOSSDKVersion”:“8.4”,“deviceName”:“iPhone 5s”,“platformVersion”:“8.4”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.4 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.4”,“iOSSDKVersion”:“8.4”,“deviceName”:“iPhone 5s”,“platformVersion”:“8.4”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.4 Simulator)’
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.coupa.push/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/com.coupa.push/Info.plist
info: [debug] Cleaning up appium session

Couple of things for you:

This option causes all of the simulators except the one under test to be deleted. The error you are getting seems as though it may be related to creating a simulator. Can you manually delete all the simulators except the one under test and try to run without this option? Also you might try opening Xcode and manually starting the simulator you want to test to make sure it’s in good working order.

You should set the value here as a path to the .app file you are testing.

Thanks I got issue fixed but face another issues
Now am using Xcode 7 and appium version 1.4.8
When try to launch app it shows error like

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --command-timeout “7200” --pre-launch --debug-log-spacing --platform-version “8.4” --platform-name “iOS” --app “/Users/mylaptop/Library/Developer/Xcode/DerivedData/***/Build/Products/Debug-iphonesimulator/Coupa Mobile Fresh.app” --show-ios-log --device-name “iPhone 5s” --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/mylaptop/Library/Developer/Xcode/DerivedData/***/Build/Products/Debug-iphonesimulator/Coupa Mobile Fresh.app

info: [debug] Creating new appium session e4480648-b7a1-47aa-bf03-6fed21a64de5
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode version

info: [debug] Xcode version set to 7.2.1

info: [debug] Setting iOS SDK Version

info: [debug] iOS SDK Version set to 9.2

info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports

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

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

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone (8.4 Simulator)’

error: Could not find a device to launch. You requested ‘iPhone (8.4 Simulator)’, but the available devices were: [“iPad 2 (9.2) [A98049B1-36C8-4353-ABD7-8969BC2C0331]”,“iPad Air (9.2) [C06C069E-CA4B-485A-96EC-1322CD7FC5F1]”,“iPad Air 2 (9.2) [75BD7FE3-B2F2-454B-9CFE-D1AEDAE4AB27]”,“iPad Pro (9.2) [5C252901-9A7B-4D65-BB32-065C559900D4]”,“iPad Retina (9.2) [AD12A8A6-4E31-4476-8C17-298D62214689]”,“iPhone 4s (9.2) [8017DF4D-9353-4B7C-B976-562C5E53773F]”,“iPhone 5 (9.2) [2149F117-6525-4B85-A520-22B300300D35]”,“iPhone 5s (8.4) [7A52BA9E-2959-4CCF-A140-7112E696D336]”,“iPhone 5s (9.2) [B1884175-4091-4BDF-A1C4-8379E855BA5A]”,“iPhone 6 (9.2) [427A0ED5-06E8-4547-80C2-F65CBDFDFFE6]”,“iPhone 6 Plus (9.2) [8622658D-04BF-4CFE-B873-63B0F2FDD254]”,“iPhone 6s (9.2) [CC052398-553E-4608-BA82-7F2B29E40A10]”,“iPhone 6s (9.2) + Apple Watch - 38mm (2.1) [CA4C30A5-598B-4558-B446-E62DE8354098]”,“iPhone 6s Plus (9.2) [0717E82E-4D8C-4133-8E74-6FC0FBA8BDA0]”,“iPhone 6s Plus (9.2) + Apple Watch - 42mm (2.1) [80BE4C22-BF62-44B6-B92B-A5FCC90E4B1E]”]

can you help me

You don’t have a simulator called, “iPhone” that is on 8.4. The error is completely valid.

@Archana_Raghuram

Download Simulator of OS-8.4 in your Xcode -7.