본문 바로가기
[IT]

appium WebDriverAgent 셋팅

by DDBobD 2022. 1. 18.
728x90
반응형

 

 

 

사전셋팅


1. WebDriverAgent 다운받기

git clone https://github.com/facebookarchive/WebDriverAgent.git

 

 

* Xcode 14.0이상 iOS 16.0 이상일 때 WebDriverAgnet 아래 방법대로 진행.

git clone https://github.com/appium/WebDriverAgent.git
  • 2번, 3번, 4번, 5번 과정은 생략
  • 6번과정은 git에서 받은 디렉토리안에 WebDriverAgent.xcodeproj 실행하면 됨

 

2. appium-webdriveragent 이동

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

 

3. cartfile, cartfile.resolved, Script 복사

  • git에서 내려받은 프로젝트에서(1번) cartfile, cartfile.resolved, Script를  appium_webdriveragent에(2번) 붙여넣기

 

4. Resources/WebDriverAgent.bundle 생성

mkdir -p Resources/WebDriverAgent.bundle

 

5. bootstrap.sh 실행

sh ./Scripts/bootstrap.sh -d

 

6. WebDriverAgent.xcodeproj 실행

 

7. 개발자 계정 등록

  • 상단 [Xcode]-[Preferences]-[Accounts] 선택

  • [+]-[Apple ID]-[Continue] 선택
  • id/pw 입력 후 [Next]

  • [Download Manual Profiles] 선택

  • [Manage Certificates...] 선택

  • [+] -[Apple Development] 선택
  • 인증서 등록 확인
  • [Done] 선택

 

 

8. Signing & Capabilities 인증서 선택

  • [WebDriverAgnt]-[TARGETS]의 각 항목에 [Signing & Capabilities]-[Team]에 등록한 인증서 선택

 

9. Build

  • [configuration dialog]-[WebDriverAgentLib]-[ios Devices]-[▶] 선택

  • [configuration dialog]-[WebDriverAgentRunner]-[ios Devices]-[▶] 선택

 

10. Test

  • [configuration dialog]-[WebDriverAgentRunner]-[ios Devices] 선택

  • [Product]-[Test] 선택

 

 

참고. 빌드할 때 아래와 같은 팝업이 노출 되는 경우가 있는데 개발자 모드를 활성해 주면 해결된다.

  • 휴대폰 설정 -> 개인정보 보호 및 보안 -> 개발자 모드 -> 개발자 모드 활성화 -> 재시동

 

참고. Xcode15 / iOS 17에서 Parameter of overriding method should be annotated with __attribute__((noescape)) 오류 해결 방법

728x90
반응형

'[IT]' 카테고리의 다른 글

우분투 '인증이 필요합니다' 팝업 꺼지지 않을때  (0) 2022.03.11
갤럭시 기종 다운그레이드 하기  (0) 2022.02.09
Pycharm SVN 연동  (0) 2021.11.26
도커 웹뷰(portainer) 셋팅하기  (0) 2021.11.03
도커 SVN 셋팅  (0) 2021.10.28