Could not prepare mobile safari with version '8'

Hi,
Am getting bellow error when running on Simulator8

info: Welcome to Appium v1.2.2 (REV cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4)

info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“safari”:true,“browserName”:“Safari”,“defaultDevice”:true,“showSimulatorLog”:true,“defaultCommandTimeout”:7200}
warn: Deprecated server args: {"–show-sim-log":“use instead: --show-ios-log”}
info: LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}

info: <-- GET /wd/hub/status 200 5.933 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformVersion”:“8”,“platformName”:“iOS”,“deviceName”:“iPhone Simulator”,“browserName”:“safari”}}

info: [debug] Configuring Safari session

info: [debug] Trying to use mobile safari, version 8
info: [debug] Looking for built in app MobileSafari

info: [debug] Got configuration error, not starting session

info: [debug] Cleaning up appium session
info: [debug] Error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’

error: Could not prepare mobile safari with version ‘8’: Error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’)”,“errno”:34,“code”:“ENOENT”,“path”:"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications",“origValue”:“ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 13.506 ms - 567

error: Failed to start an Appium session, err was: Error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’

This version of Appium does’t support iOS8, please update to the latest version 1.3beta.

I just downloaded 1.3beta how to run appium1.3? i don’t find .app file. Please help

Sorry I am on Windows here :frowning:
Are you sure you downloaded the Mac release and not the Windows release???

I downloaded it from https://github.com/appium/appium/releases/tag/v1.3.0-beta1

This is the source code of the Appium server and not the .app file you are looking for. It came to my attention that they haven’t released a new .app file for the 1.3beta version. You will have to wait for it to be built or run from the source instead.

can you help me how to run from source? i did
npm install -g appium
appium &
it gave me something 3849 appium:command not found

Try these steps in order to run from source (make sure to grab the ios8 branch aka “1.3 beta” )

  1. git clone -b ios8 https://github.com/appium/appium.git
  2. cd appium
  3. ./reset.sh --iOS
  4. sudo ./bin/authorize-iso.js
  5. node bin/appium.js -p 4724
  6. point your tests to run against hostname:4724

Thanks I followed the steps and i got below error when opened IOS Simulator and passed these Caps

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”, “iPhone 5”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platformVersion”, “8”);
capabilities.setCapability(“browserName”, “safari”);
IOSDriver driver= new IOSDriver(new URL(“http://0.0.0.0:4724/wd/hub”), capabilities);

	 driver.get("http://www.google.com");

ERROR:
error: Could not prepare mobile safari with version ‘8’: Error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’
info: [debug] Got configuration error, not starting session
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: ENOENT, stat ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.sdk/Applications’

Please help!

Sorry resolved the issue. My bad i was still running 1.2.4.
Thanks for your help @jserene and @Hassan_Radi

But, how to open an inspector window from command prompt?