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

Hi Team,

Seems some of the users have run into this issue, but i do not see a definite solution to this problem. I am using Appium 1.3.1 with xcode 6. When i try to launch the device in Simulator, I am getting the, ‘Could not set the device type in Info.plist’ error. PFB appium console logs :

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 8340a438-1c34-40ac-99b1-5154f87786ca

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.0

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.0.1”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPad Retina”,“platformVersion”:“7.1”}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPad Retina (7.1 Simulator)’
info: [debug] iOS sim UDID is 72D7406C-CABB-45A8-ADF0-4CF7D39719AB
info: [debug] Detecting automation tracetemplate

parseFileSync() is deprecated. Use parseStringSync() instead.

info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Users/doug/Desktop/test3/Appium 1.3.1/Appium.app/Contents/Resources/node_modules/appium/com.boa.bct.tablet/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/doug/Desktop/test3/Appium 1.3.1/Appium.app/Contents/Resources/node_modules/appium/com.boa.bct.tablet/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/doug/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Users/doug/Desktop/nodejs/bin/node",“commandProxyClientPath”:"/Users/doug/Desktop/test3/Appium 1.3.1/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}

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

Same issue i have also persist.

I am using Xcode 6.1 and Appium 1.3.1.

Error is: Could not parse plist file (as XML) at /var/folders/rd/8m1mqtsj0b36ylkz51z287cc0000gn/T/1141011-2435-1n7n2f7/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings

–> ‘parseFileSync()’ is deprecated. Use ‘parseStringSync()’ instead.

Please look this issue ASAP, i am blocked here.

Thank you in advanced.

I am able to get this resolved. Basically the GUI version of Appium is not taking the Platform version options. I started the appium server without prelaunching the app, and set all the capabilities using the code instead of GUI. That worked and i am able to see the app in simulator now.

Can you please provide your working desired caps? Thanks.