Install Appium On Mac For Xcode 8



  1. Install Appium On Mac For Xcode 8 Dmg
  2. Install Appium On Mac For Xcode 80
  3. Download Appium Server For Windows
  4. Install Appium On Mac For Xcode 8 Beta
  5. Appium Install Apk

Oct 24, 2019 Launch Appium on Mac OS X Now, open the Appium app from 'Application' and start the Appium Server. After providing the desired capabilities in Appium Inspector, you can start the session. You can save this desired capability for next time for quick access. Dec 01, 2016 Hi, I have mac os 10.10 on my Mac and I can't install Xcode cause its supported only for 10.11 and above. So I want to update my os, and the version available for me is 10.12 From searching I found there is a problem with Appium to recog. Setting up Appium for Mac OS X Published on December 24. I hope this article reduce the hassle for installing Appium and related dependencies. Go to App Store. Search for Xcode.

This document is created for below configuration

  • macOS Catalina 10.15.2
  • Appium 1.15.1 desktop or Appium CLI 1.16.0
  • java-client 7.2.0

However, by the time you read this , this document may be outdated.

I find the biggest challenges in Appium is not the scripting itself , but the setting up in OS X. The documentations from official source confusing and outdated. They are seldom updated , so some investigations are needed if you encounter issues at certain versions upgrade.

Be prepare to give yourself at least 1-2 days in setting up. Some of the dependencies take some investigation for it work.

I hope this article reduce the hassle for installing Appium and related dependencies.


Section 1


9 Steps to setup

  1. Update OS X to at least Catalina 10.15.2 . I got several issues resolve when I upgrade to the OS.
  2. Install java 1.8 latest build. You can get the latest JDK 1.8 from this link. At this time of the writing it is build 231.
  3. Install Python from here. Python 3.8.1 is the latest as of today documentation.
  4. Install Xcode. Go to App Store. Search for Xcode
  5. Install your favourite IDE. I am using Eclipse for this
  6. Install brew. Run this from terminal

For some reasons , brew may fail. This may due to your permission settings. Input this in your terminal

And reinstall brew again


7. Install node and npm

You can get npm in here.


If you are not sure if you have npm , type this in terminal


If there is an error means you need to go to the link above to install it.


8. Install Xcode command line tool.

In terminal


Make sure you accept Xcode license first. Launch Xcode and accept the license agreement so that the Xcode command line works

Check your xcode command line version

Mine is 2373.



9. Setup your environment. Refer to section 3



Section 2

1.Install Appium Desktop or CLI

Install Appium Desktop from this link. My build is Appium 1.16.0 If you prefer the console version , input this in terminal

If there is permission error installing appium desktop , it may be due to permission ownership in the folder. You may want to refer to this link or try the below.



2. Install XCUITest

https://github.com/appium/appium-xcuitest-driver


(DO NOT USE — HEAD as new OS X 10.15 will not work)


3. Carthage



4. ios-deploy . (if fails to install)

Check if your command line for xcode is install at the correct path. See this link that explains and how to reset Command Line to correct path

You can type the following to see the current path. Mine was wrongly at '/Library/Developer/CommandLineTools'.


Using the command below, the path was reset to '/Applications/Xcode.app/Contents/Developer', which solved the issue and allowed me to install ios-deploy


Rerun the npm command above to install ios-deploy

If it is not the command line issue, see below


You will need to reboot into recovery mode

https://github.com/ios-control/ios-deploy/issues/346

Go terminal in recovery mode

Reboot and input this in terminal


5. Install appium doctor



6. Optionals to install

A. opencv4nodejs

This is for image comparison and it is optional. If this fails the first round, do not worry . Skip this and move on the rest. Do this as last optional as there may be missing dependencies that may be solved at other optional install.


Input this in your terminal

You may need to have python3 install and update pip3 before running the above. This seem to solve 'Cannot open include file: 'opencv2/core.hpp'!'

Refer to link for the above 'core.hpp' error and this info on how to install the opencv4nodejs if it fails.

If it fails , check if cmake is install (brew install cmake) . The below command may resolve the issue

Terminal :


B. applesimutils

Terminal:


C. libdevicelocation

Go to this git and follow the instruction. Install all the dependencies. Make sure that you set the environment in here for openssl before running below comamnds.

You may have some other missing packages that are not mention here.

Terminal:

If encounter pkg-config error like this RuntimeError: /usr/local/opt/pkg-config not present or broken, run this in terminal:




D. ios-webkit-debug-proxy

Terminal:


E.ifuse

Terminal:


F. mjpeg-consumer

Terminal:


G. ffmpeg

Terminal:



H. idb and idb companion

Terminal:


Currently there is a defect in appium idb. It may be resolved. You can skip installing idb if it impacts you.


I. bundletool.jar

Get jar file from here

Rename the file to bundletool.jar. Make it executable by using chmod.


Add this to path env /Users/username/drivers/bundle-tools in .bash_profile .


J. Set-simulator-location

Go to here for instruction or input this in your terminal



Section 3

1.Environments

Setup your environments in .bash_profile to something like this



Additional environment settings in .bash_profile for libdevicelocation

Appium install apk


Section 4

1.Check if you setup correctly

In terminal , run


If you are successful , you will have an output similar like this



Congratulations for making it here! There are a few more steps before you complete the setup.


Section 5

Before you start running your test, there are a few things you need to do.

1.Android AVD Emulator

Create an emulator in Android. Fastest way is to create an Android Studio project and then run in a avd.

Go to Tools -> Android -> AVD Manager. Press the '+ Create Virtual Device' button.

Run your project. It should launch the emulator with the avd in it.

In terminal run


2.Android real device

You need to download the Android Transfer File app. Make sure when you plug in your android device, you can see the device. The Android Transfer File app will tell you it is connected too.

In terminal to find if the device is connected


If you are still not able to detect the devices , check the usb cable if it is spoil. You need to also enable authorisation to your phone and the debugging mode. Check respective manufacturer settings (but most of it is under the app Settings)


3.iOS Simulator

Create a simulator image in xcode- if you intend to run a iPhone 6 image , make sure that you create a iPhone 6 image first before running.



4. iOS Real Device

Create a xcode profile. Connect your iPhone to your macbook and run. It will fail because you do not have the team id. Input your team id in .bash_config like the above. You will need to input your team id in xcode. Run again and it should build in your iPhone.

The other problem is that you did not pair with your real device. Connect to it and launch iTunes. Your device will ask for authorisation. Accept it. If you have pair successfully with your mac , input the below.

The UUID of the real device should appear if paired successfully


If failed check this link

Section 6 - Q&A

1.What happen if Appium cannot build WebdriverAgent (WDA) ?

Bulk of the problems after you have installed successfully and validate using appium doctor lies with configuring WebDriverAgent. Refer to this instruction in Appium doc.


The WDA modules is in this path:

/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent


Go to the folder. In the terminal :


Optional - it might be necessary to create an empty folder for WDA resources:


If it does not run , run this (example on iPhone 11) , test it out if you can execute WebDriverAgent from command line


This will check if WebDriverAgent can installed. If it cannot installed , check the connection , see if you can create and compile a “Hello World” with Xcode in the simulator. If you can , compile WDA in the real device.


Build the WDA from /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent and run in Xcode. See instruction from Katalon.


If you still have problem with WDA , You may need to download WDA from this link. Open xcode and build it on your phone.


2. If I want to keep the prebuild wda (to save time) rather than rebuild it every session , what are the desired capabilities settings ?

usePrebuiltWDA: true


3. Do I need to update the WDA every runs or appium update ?

Only every Appium updates


4. If iOS simulator fails to launch through Appium

You may need to reset your simulators. In terminal , type this to delete all content of simulators. Prepare to loose all your data in all simulator . Backup your simulator data if want those data.



5. Real iOS device issue

On iOS real device , follow this guide if it fails


Make sure you have this in environment (refer to section 3 / environments)

DEVELOPMENT_TEAM = <Team ID>

CODE_SIGN_IDENTITY = iPhone Developer



6. npm issues

Make sure that cmake are installed. This is one of the main issues.

Install Appium On Mac For Xcode 8 Dmg


Install Appium On Mac For Xcode 80



Lastly , let me know if I am missing any steps. I will update again. Thanks.

Ivan

Download Appium Server For Windows


Install Appium On Mac For Xcode 8 Beta

Doc created : 24 Dec 2018

Updated : 31 December 2019

Appium Install Apk


Source - https://www.linkedin.com/feed/update/urn:li:activity:6482259717426110464/