Set Up For Appium iOS PDF
Set Up For Appium iOS PDF
Set Up For Appium iOS PDF
Prerequisite:
1) Install Brew::
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
2)Ensure you have admin access in your machine and you have set some password for your
account.
6) If you still face permissions error, we can use sudo link for the same
sudo authorize-ios
2.1) Before moving further ensure that you have appium and node installed in your machine
https://www.npmjs.com/package/appium-doctor/tutorial
https://github.com/appium/appium-doctor
b)node -v
d) Run command ::
Go to path where your node modules is present is present.
For me it is under:
/Users/ashish/node_modules/appium-doctor
So in terminal use :
cd /Users/ashish/node_modules/appium-doctor
then run
node appium-doctor
WebDriverAgent Configuration
a) go to => node_modules/appium-xcuitest-driver/WebDriverAgent
i)open finder and paste the path
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driv
er/WebDriverAgent
also open same in terminal using
cd
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driv
er/WebDriverAgent
b) mkdir -p Resources/WebDriverAgent.bundle
c) sh ./Scripts/bootstrap.sh –d
i) Before using open command , manually go to path where your
WebdriverAgent is present and open the xcode project - if you get
any error opening the project use command
sudo chmod -R 777 . appium-xcuitest-driver/* and ensure you are in
node_modules directory
d)Open Xcode with WebDriverAgent.xcodeproj –
ii) Now come back to Xcode and Select TEAM from Signing(Debug)
Now Run the same
iv) Now click on WebDriverAgentRunner and select team , after selecting team you will
get provisioning profile error so for this go to BUILD
SETTINGS—>BASIC—>PACKAGING.
vi)Now run integration app and use COMMAND+1,2 or 3 to adjust phone screen
vii) Now we need to get the app for eclipse .. Goto Xcode—>File—>Project Settings and
click on arrow in DerivedData
viii)
DerivedData—>WebDriverAgent…vugp—>Build—>Products—>Debug-Iphonesimulat
or—->IntegrationApp.
ix) Drag the Debug-iphonesimulator in terminal and cd to its prior to change the directory
cd
/Users/deep/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgi
vnnvuygpwhzy/Build/Products/Debug-iphonesimulator.