New Xcode breaks iOS Emulator initiation

Hope you are with latest Appium 1.4.11? Where iOS9 support was introduced…

I wish… I am not sure how can I use it, since there’s no .dmg file for download yet

I tried to find a way to install 1.4.11 without the dmg file but just couldn’t find…

Thank you very much for taking some time off your daily activities to assist me with my issue.
It’s always nice to see people giving back the community they are part of

2 Likes

Here are the steps to re-config your Appium (Mac app/Windows EXE) client point to latest Appium version 1.4.11.

  1. Clone this Appium git to your local git clone https://github.com/appium/appium.git
  2. Once the download is complete, Run reset.sh
  3. Open Appium Client
  4. Select “Developer settings” and enable it.
  5. Select Use External NodeJS Binary to “Your local node bin folder path”
  6. Select Use External Appium Package to “Your Appium Local clone folder path”
  7. Start the Appium Server.

You should see the latest version of Appium on the client like below

info: Welcome to Appium v1.4.11 (REV 460994a14dfb20b2d55ff14b99c0d31f6af5a9e2)
info: Appium REST http interface listener started on 0.0.0.0:4723

Happy Appium!

3 Likes

Thought I would share how I install the latest Appium version on my machine ( Yosemite - Mac)

  1. Install homebrew ( if not): http://brew.sh/
  2. Completely uninstall node ( if you already install node with sudo) because Appium won’t work in this case: https://gist.github.com/TonyMtz/d75101d9bdf764c890ef
  3. Install node by homebrew: brew install node
  4. Install latest Appium: npm install -g [email protected]
  5. Run Appium: appium &

NOTE: You can use the inspector from the Appium app even if it is not in 1.4.11 version, just open the app and click on the magnifier

1 Like

I have the same issue. I am on 1.4.11 - It looks like appium is adding the “Simulator” and Xcode 7 removed the word “Simulator” from its emulator names.

Added an issue on github https://github.com/appium/appium/issues/5624

Alright… tried doing just that and got the following error:
module.js:338
throw err;
^
Error: Cannot find module ‘argparse’
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Applications/Appium 1.4.11/lib/server/parser.js:2:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

Oh I forgot the restart node…
I went through that issue and now have some other issues,
Cheers!

Work Perfect ! Thanks for the hack !

I have the same problem, although I restarted node or updated npm, the problem didn’t be solved.

Thank you for the steps, although my Appium version is 1.4.11 now, the Appium Server is still send error message(module.js:338). What can I do?

Did you restart after the installation?

Thank you very much for your answer, Yes I did.
Now I solved this issue and now have some other issues. :smile:

Excellent, ask away if you’re stuck.
I was stuck for some good days with the iOS9 update, not fun

1 Like

@pavelzagalsky

I have few queries regarding error given in description.

error: Could not find a device to launch. You requested ‘iPhone (8.4 Simulator)’, but the available devices were: [“iPad 2 (8.3) [0F15A0D6-5659-4C1B-BF50-2490AE40E4DE]”] …

Does iPhone (8.4 Simulator) is visible in your xcode if you manually build and launch your app ?
Does XCode 7 supports iPhone (8.4 Simulator) ?
Is it possible to try with devices which are available ?

I had the same issue before I used the Appium 1.4.11.
Did you set the following?
Select Use External NodeJS Binary to “Your local node bin folder path”
Select Use External Appium Package to “Your Appium Local clone folder path”

I’m seeing the same error that @pavelzagalsky and @snake_King are seeing. Do you have any idea why we might be seeing this ? I tried reading the documentation for running Appium on OSX (running-on-osx.md), but it contains no information regarding this issue. I am using Xcode version 7.0 to build my projects.

Thanks in advance.