Error on SauceLabs iOS Simulator - Error: ENOTDIR: not a directory on Info.plist

Hi,
I’m trying to run my automated tests for iOS on SauceLabs. First of all, I already tried it locally on a simulator and worked fine.

So, here is my log:

2015-11-13 14:36:13:945 - info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
2015-11-13 14:36:13:949 - info: Appium REST http interface listener started on 0.0.0.0:4443
2015-11-13 14:36:13:954 - info: [debug] Non-default server args: {"app":"/tmp/tmpVeBqvV/MyApp.app","port":4443,"callbackAddress":"127.0.0.1","backendRetries":4,"launchTimeout":"50000","logTimestamp":true,"logNoColors":true,"orientation":"portrait","showSimulatorLog":true,"defaultCommandTimeout":0,"keepKeyChains":true}
2015-11-13 14:36:13:955 - warn: Deprecated server args: {"--show-sim-log":"use instead: --show-ios-log"}
2015-11-13 14:36:13:955 - info: Console LogLevel: debug
2015-11-13 14:36:14:128 - info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"iPhone Simulator","webdriver.remote.quietExceptions":true,"platformName":"iOS"}}
2015-11-13 14:36:14:132 - info: Client User-Agent string: undefined
2015-11-13 14:36:14:135 - info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : webdriver.remote.quietExceptions
2015-11-13 14:36:14:139 - info: [debug] Using local app from command line: /tmp/tmpVeBqvV/MyApp.app
2015-11-13 14:36:14:141 - info: [debug] Creating new appium session 4b99641b-802f-402f-b8dd-3040fde60e37
2015-11-13 14:36:14:144 - info: [debug] Removing any remaining instruments sockets
2015-11-13 14:36:14:146 - info: [debug] Cleaned up instruments socket /tmp/instruments_sock
2015-11-13 14:36:14:147 - info: [debug] Setting Xcode version
2015-11-13 14:36:14:199 - warn: Support for Xcode 5.1.1 has been deprecated and will be removed in a future version. Please upgrade to version 6.3 or higher (or version 6.0.1 for iOS 8.0)
2015-11-13 14:36:14:200 - info: [debug] Xcode version set to 5.1.1
2015-11-13 14:36:14:200 - info: [debug] Setting iOS SDK Version
2015-11-13 14:36:15:162 - info: [debug] iOS SDK Version set to 7.1
2015-11-13 14:36:15:162 - info: [debug] Checking whether instruments supports our device string
2015-11-13 14:36:15:163 - info: [debug] Getting list of devices instruments supports
2015-11-13 14:36:15:658 - info: [debug] Instruments is at: /Volumes/Xcode/Xcode-5.1.app/Contents/Developer/usr/bin/instruments
2015-11-13 14:36:20:910 - info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.1.1","iOSSDKVersion":"7.1","deviceName":"iPhone Simulator","platformVersion":null}
2015-11-13 14:36:20:911 - info: [debug] fixDevice is on
2015-11-13 14:36:20:911 - info: [debug] Fixing device. Changed from: "iPhone - Simulator - iOS 7.1" to: "iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1"
2015-11-13 14:36:20:913 - info: [debug] Final device string is: 'iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1'
2015-11-13 14:36:20:914 - info: [debug] Auto-detecting iOS udid...
2015-11-13 14:36:20:914 - info: [debug] Not auto-detecting udid, running on sim
2015-11-13 14:36:20:917 - info: [debug] Could not parse plist file (as binary) at /tmp/tmpVeBqvV/MyApp.app/en.lproj/Localizable.strings
2015-11-13 14:36:20:917 - info: Will try to parse the plist file as XML
2015-11-13 14:36:20:917 - info: [debug] Could not parse plist file (as XML) at /tmp/tmpVeBqvV/MyApp.app/en.lproj/Localizable.strings
2015-11-13 14:36:20:918 - warn: Could not parse app Localizable.strings assuming it doesn't exist
2015-11-13 14:36:20:918 - info: [debug] Getting bundle ID from app
2015-11-13 14:36:20:918 - info: [debug] Could not parse plist file (as binary) at /tmp/tmpVeBqvV/MyApp.app/Info.plist
2015-11-13 14:36:20:919 - info: Will try to parse the plist file as XML
2015-11-13 14:36:20:919 - info: [debug] Could not parse plist file (as XML) at /tmp/tmpVeBqvV/MyApp.app/Info.plist
2015-11-13 14:36:20:919 - error: Could not get the bundleId from app.
2015-11-13 14:36:20:920 - error: Could not set the bundleId from app.
2015-11-13 14:36:20:921 - info: [debug] Cleaning up appium session
2015-11-13 14:36:20:922 - error: Failed to start an Appium session, err was: Error: ENOTDIR: not a directory, open '/tmp/tmpVeBqvV/MyApp.app/Info.plist'
2015-11-13 14:36:20:925 - info: [debug] Error: ENOTDIR: not a directory, open '/tmp/tmpVeBqvV/MyApp.app/Info.plist'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at parseXmlPlistFile (/Volumes/Sauce/selenium/lib/devices/ios/ios.js:38:25)
    at /Volumes/Sauce/selenium/lib/devices/ios/ios.js:51:7
    at ReadFileContext.callback (/Volumes/Sauce/selenium/node_modules/bplist-parser/bplistParser.js:37:25)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
2015-11-13 14:36:20:926 - info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: ENOTDIR: not a directory, open '/tmp/tmpVeBqvV/MyApp.app/Info.plist')","errno":-20,"code":"ENOTDIR","syscall":"open","path":"/tmp/tmpVeBqvV/MyApp.app/Info.plist","origValue":"ENOTDIR: not a directory, open '/tmp/tmpVeBqvV/MyApp.app/Info.plist'"},"sessionId":null}

My capabilities are:

capabilities.setCapability("appiumVersion", "1.4.13");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME,"iPhone Simulator");   
capabilities.setCapability("os", "iOS 6");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("app","sauce-storage:MyApp.app");

Someone had this problem?
Thanks.

I did a google search for ‘saucelabs “Error: ENOTDIR: not a directory”’ which came up with this:

https://support.saucelabs.com/customer/portal/questions/14597997-error-running-tests-on-ios-app-in-temp-storage

Could that be your problem?