Need help in the install appium to Mac


#1

Hi guys!!
Can you help me to install appium in the mac for testing on the real devices(iPhones/ iPad). I tried already set up appium, but every time i had problems with inspector and doctor.
If you know how to tune up XcodeVersion 8.2.1 and appiumVersion 1.5.3 (Ara), please let me know by reply to this topic or send to me mail: [email protected](my name is Dmitry).
I need all steps(step by step)


#2

This is an unsupported configuration and will never work. You need Appium 1.6 to work with Xcode 8.


#3

Can you help me install appium 1.6?


#4

Below are the steps for Appium 1.6

1.You need to install node on your machine.Please refer below link to download.

2.Once installed then run below command to verify it.
i) npm -v
ii) node -v

  1. Now run below command to install appium stable version

npm -g install appium


#5

External Dependencies:

  • brew install ideviceinstaller

  • brew install carthage

  • npm install -g ios-deploy

  • npm install deviceconsole

  • sudo gem install xcpretty

  • brew install libimobiledevice --HEAD

Install the latest beta Appium (currently 1.6.4 beta):

-npm uninstall -g appium && npm install -g [email protected]

Open terminal & open the the WebDriverAgent folder:

  • /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

Run the following 2 commands:

  • mkdir -p Resources/WebDriverAgent.bundle
  • sh ./Scripts/bootstrap.sh -d

Open the Xcode project (Under the WebDriverAgent folder)

  • Make sure that the device under testing is connected
  • Sign the WebDriverLib & the WebDriverAgent.

Open he terminal & under the WebDriverAgent folder run the following command (The id is the tested device udid that we are using so change it to yours):

  • xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=51d8c712258a5b0ac63516aa5be9d10014b0c270’ test
    The command needs to be run twice- the first will failed, but will install the WebDriverAgen app, then you will need to trust in under the device management & then run it again & it will finish successfully.

If needed check the below video for setup instructions:

Happy testing!


#6

thanks all of you! I will to try)


#7

Hi All! Which Programm you use for write code for testing apps on Mac? idea or eclipse? Can i use Xcode for this


#8

you may use whatever like if Xcode will support you code. Appium code can be written on Java, Ruby, JS…

personally use IntellyJ with Java


#9

i’m using 8.2.1 Xcode. Aleksei, can you provide guide me how to use and tune Xcode for write code on java


#10

no idea about java with xCode :slight_smile:


#11

on Xcode only swift? What instrument you using for write code for appium on mac?


#12

@Dmitry Java-client -> https://github.com/appium/java-client


#13

Thanks for the video.

I see below error in the terminal while running the below command build command. please help.

iOS Version:10.3.1
Device:iPhone6S[Device connected with Mac machine]
Appium Version: 1.6…5-Beta
XCode Version:8.2.1
MAC version:10.11.5 [OS X EI Captain]

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=d991bc9a9d4b013d845af55db4f7d7d28c8918ce’ test

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:d991bc9a9d4b013d845af55db4f7d7d28c8918ce }

Unsupported device specifier option.
The device “My Mac” does not support the following options: id
Please supply only supported device specifier options.

Available destinations for the "WebDriverAgentRunner" scheme:
	{ platform:iOS, id:d991bc9a9d4b013d845af55db4f7d7d28c8918ce, name:bsrilakshmi’s iPhone }
	{ platform:iOS Simulator, id:65F96F8D-F44A-4847-811A-9DDBC27312A3, OS:10.2, name:iPad Air }
	{ platform:iOS Simulator, id:5E0FFB3E-CFC4-4C2D-9043-149732E802DD, OS:10.2, name:iPad Air 2 }
	{ platform:iOS Simulator, id:359D607C-D282-43D8-8E54-7F36F4B2AC98, OS:10.2, name:iPad Pro (9.7 inch) }
	{ platform:iOS Simulator, id:57A50796-4302-4647-AC72-C4C19EAFAB7E, OS:10.2, name:iPad Pro (12.9 inch) }
	{ platform:iOS Simulator, id:ACAF7555-4EE2-4F52-801F-88FDFEEEEB97, OS:10.2, name:iPad Retina }
	{ platform:iOS Simulator, id:2DE6E7BA-0C4C-4505-AF87-4EF782CA3655, OS:10.2, name:iPhone 5 }
	{ platform:iOS Simulator, id:90290519-F69F-4CC8-BFB4-3138F9C834D3, OS:10.2, name:iPhone 5s }
	{ platform:iOS Simulator, id:5935AC5C-0BEC-47EE-BD84-7BE712F481EE, OS:10.2, name:iPhone 6 }
	{ platform:iOS Simulator, id:2A6892CF-689C-493C-BA49-C1D7D26D6B79, OS:10.2, name:iPhone 6 Plus }
	{ platform:iOS Simulator, id:58344415-BAE7-4B73-AC7F-9F528C79950E, OS:10.2, name:iPhone 6s }
	{ platform:iOS Simulator, id:C6A7DA37-80B2-4C92-A3E5-8694BA26EA7C, OS:10.2, name:iPhone 6s Plus }
	{ platform:iOS Simulator, id:35A40221-02AA-4D99-98C2-DC2BB13FE5B6, OS:10.2, name:iPhone 7 }
	{ platform:iOS Simulator, id:FDC32A42-D582-426F-94EB-B825A7C0C173, OS:10.2, name:iPhone 7 Plus }
	{ platform:iOS Simulator, id:D56DA346-A812-4E0A-9CA6-830E442EE979, OS:10.2, name:iPhone SE }

Ineligible destinations for the "WebDriverAgentRunner" scheme:
	{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
	{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }

apples-Mac-mini-2:WebDriverAgent apple$
apples-Mac-mini-2:WebDriverAgent apple$


#14

Please find your answer in this, follow all the steps to set-up appium


#15

Complete installation of Appium in mac for real device iOS automation

Here I have displayed the procedure for the complete installation of Appium in mac for real device iOS automation in My own blog. I have given the steps for Command line tool installation and GUI installation of appium in mac in my blog.