Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Couldn't find built in app in its home or temp dir!

1,403 views
Skip to first unread message

Girija Balachandran

unread,
Apr 9, 2014, 1:31:33 PM4/9/14
to appium-...@googlegroups.com
Hello,

After a machine reboot, i run into this error: "A new session could not be created. (Original error: Couldn't find built in app in its home or temp dir!) (Selenium::WebDriver::Error::WebDriverError)"
Current configuration: 
- Maverick 10.9.2
- Xcode 5.1
- Appium 0.18

Running the Mobile Web tests on iOS simulator 7.0 

Appium logs:

info: Welcome to Appium v0.18.0 (REV 9f798f52e112477eb35abcb04c6c46778d77a100)

info: Appium REST http interface listener started on 127.0.0.1:4723

info: socket.io started

info: Non-default server args: {"address":"127.0.0.1","merciful":true,"safari":true}

debug: Appium request initiated at /wd/hub/session

debug: Request received with params: {"desiredCapabilities":{"device":"iPhone Simulator","browserName":"iOS","version":"7.0","platform":"Mac","app":"safari"}}

warn: [DEPRECATED] The device capability has been deprecated and will be removed.  Please use the platformName capability instead.

warn: [DEPRECATED] The version capability has been deprecated and will be removed.  Please use the platformVersion capability instead.

info: Configuring Safari session

info: Trying to use mobile safari, version 7.0

info: Looking for built in app MobileSafari

info: App is not at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Applications/MobileSafari.app

warn: App is also not at /tmp/Appium-MobileSafari.app

error: Could not prepare mobile safari with version '7.0': Error: Couldn't find built in app in its home or temp dir!

info: Got configuration error, not starting session

info: Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Couldn't find built in app in its home or temp dir!

info: Error: Couldn't find built in app in its home or temp dir!

    at /Users/gbalachandran/appium/lib/helpers.js:164:23

    at Object.oncomplete (fs.js:107:15)

info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Couldn't find built in app in its home or temp dir!)","origValue":"Couldn't find built in app in its home or temp dir!"},"sessionId":null}

POST /wd/hub/session 500 43ms - 252b

debug: Appium request initiated at /wd/hub/session

debug: Request received with params: {"desiredCapabilities":{"device":"iPhone Simulator","browserName":"iOS","version":"7.0","platform":"Mac","app":"safari"}}



Jonathan Lipps

unread,
Apr 9, 2014, 4:20:45 PM4/9/14
to Girija Balachandran, appium-...@googlegroups.com
That means that your /tmp dir was cleaned out and Appium had crashed at some point, so your Mobile-Safari.app has been lost. Hopefully you have a backup! If not, redownload the iOS SDK.

You can also set a different path for appium to move the mobile-safari.app to so it doesn't get cleaned out on a machine reboot.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Girija Balachandran

unread,
Apr 9, 2014, 6:17:41 PM4/9/14
to appium-...@googlegroups.com, Girija Balachandran
Thanks Jonathan!
I had to re-download the sdk. How can i modify the path for Appium to move the mobile safari app to a different location?

Thanks,
Girija

Jonathan Lipps

unread,
Apr 9, 2014, 6:47:59 PM4/9/14
to Girija Balachandran, appium-...@googlegroups.com
Set APPIUM_APP_BACKUP_DIR env variable to the directory you want

Naveed Saleem

unread,
Sep 2, 2014, 9:08:45 AM9/2/14
to appium-...@googlegroups.com, giri...@gmail.com
Hi, 

How can I set APPIUM_APP_BACKUP_DIR? using below is not working

Capability.setCapability("APPIUM_APP_BACKUP_DIR", "/MobileSafari.app");


Thanks, 
Naveed

Eric Millin

unread,
Sep 2, 2014, 10:03:12 AM9/2/14
to appium-...@googlegroups.com, giri...@gmail.com
Set APPIUM_APP_BACKUP_DIR env variable to the directory you want.

Naveed Saleem

unread,
Sep 2, 2014, 10:11:28 AM9/2/14
to appium-...@googlegroups.com, giri...@gmail.com
You mean I should set it in my code(testcase) like, 
APPIUM_APP_BACKUP_DIR = "<path>"

wondering I need to create a new variable or it is some global variable, don't understand how to set it?

Thanks, 

Eric Millin

unread,
Sep 2, 2014, 12:52:34 PM9/2/14
to appium-...@googlegroups.com, giri...@gmail.com
Yes, you can set it in your code.  http://stackoverflow.com/a/15058999

You can also set it on the cmd line when you start appium.
OSX: APPIUM_APP_BACKUP_DIR="<path>" appium [options]
Windows: set APPIUM_APP_BACKUP_DIR="<path>" & appium [options]
Reply all
Reply to author
Forward
0 new messages