Unable to run Appium 1.3.1 with Xcode 6.1 IOS: ‘ENOENT, no such file or directory’

-Mac running latest Mavericks
-Appium 1.3.1
-Java
-xcode 6.1
-iOS Sim 7.1
-app name: companyApp.app

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”},“isShuttingDown”:false},“sessionId”:“73683db1-1837-446a-b4f6-e4277c65228d”}
info: <-- GET /wd/hub/status 200 1.033 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”},“isShuttingDown”:false},“sessionId”:“73683db1-1837-446a-b4f6-e4277c65228d”}

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

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1 Simulator)’
info: [debug] iOS sim UDID is 70D0E3E2-F70D-4BC1-944A-25F0CD8B5F55
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/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.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/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.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] Could not parse plist file (as binary) at /Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist
info: [debug] Cleaning up appium session
info: [debug] Error: ENOENT, no such file or directory ‘/Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist’
at Object.fs.openSync (fs.js:438:18)
at Object.fs.readFileSync (fs.js:289:15)
at Object.parseFileSync (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/plist/lib/node.js:47:18)
at Object.deprecated [as parseFileSync] (util.js:77:15)
at parseXmlPlistFile (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:36:27)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:48:7
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/bplist-parser/bplistParser.js:32:25
at fs.js:207:20
at Object.oncomplete (fs.js:107:15)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ENOENT, no such file or directory ‘/Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist’)”,“errno”:34,“code”:“ENOENT”,“path”:"/Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist",“syscall”:“open”,“origValue”:“ENOENT, no such file or directory ‘/Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 1228.639 ms - 710

error: Could not get the bundleId from app.
error: Could not set the bundleId from app.
error: Failed to start an Appium session, err was: Error: ENOENT, no such file or directory ‘/Users/vpsai/Library/Developer/Xcode/DerivedData/companyApp-blbudzdbopatqjfuarxnqjxujhdp/Build/Products/Debug-iphonesimulator/companyApp.app/Info.plist’

Obvisouly, appium is not able to find your app. Where is your app bundle? You should give the path of the app bundle as a capability. Otherwise how would appium know how to get to your app?

If you build using xcode6, the app will be on
/Users/YOURUSER/Library/Developer/CoreSimulator/Devices/GENERATEDDEVICEFOLDER/data/Applications/GENERATEDAPPFOLDER/companyApp.app

can you provide an example for the path

Sure:
/Users/Neto18/Library/Developer/CoreSimulator/Devices/A09FE030-EBAD-419B-A5BD-0674357CB4BA/data/Applications/7008CC8B-F5FC-4C93-A3A2-B9362783FEA9/MyTestApp.app

1 Like

Thanks @Neto18, it worked

Good to know! You are welcome.

1 Like

Just if someone enter here like me from Google search and if you are using xCode7 you can find apps file in

/Users/USERNAME/Library/Developer/Xcode/DerivedData/APPNAME-haiaeywyzusljuekrwawclsilbzu/Build/Products/Debug-iphoneos/APPNAME.app

and

/Users/USERNAME/Library/Developer/Xcode/DerivedData/APPNAME-haiaeywyzusljuekrwawclsilbzu/Build/Products/Debug-iphonesimulator/APPNAME.app