Solved the issue. It works perfectly fine now.
Thanks to @bgalperin who had commented in this link
Steps:
- npm uninstall -g appium
- npm install -g [email protected]
- Open WebDriverAgent project in Xcode and clean it
- Make sure this project is properly signed by your development team
- Run test (it will automatically rebuild WDA)
I tried both Option#1 and Option#2 (mentioned in the first thread) and it worked fine.
Thanks @Brian_Watson, @Aleksei, @Mayuresh_Shirodkar and @VikramVI for your time and suggestions.