Not able to run appium with xcode 6

WebDriverException: Message: u’A new session could not be created. (Original error: Could not find ios simulator binary at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator)

so the simulator file is in /Applications/Xcode.app/Contents/Developer/Applications/iPhone Simulator

how do I change it in command line or how do I fix this issue ?

You’ll need to run these commands (as per this GitHub Issue)

## Fix the Instruments path. They changed the .bundle folder to .xrplugin
ln -sf /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/ /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle

## Match the directory structure of Xcode 5
mkdir /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/
mkdir /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

## Fix the simulator app name. They changed it from iPhone Simulator to iOS Simulator (about time)
ln -sf /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app

## Fix the binary name. They changed it from iPhone Simulator to iOS Simulator (about time)
ln -sf /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app/Contents/MacOS/iOS\ Simulator /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app/Contents/MacOS/iPhone\ Simulator
1 Like