[Xcode13 Simulator] Xcode 시뮬레이터에서 .ipa파일 설치 과정

xeptember·2022년 6월 30일
0

Xcode에서 IPA 파일도 추출하고 시뮬레이터 빌드까지 완료했으나 (빌드 실패는 아니고 빌드까지는 된다) 내 로컬에서 시뮬레이터로 바로 빌드하지 않고 Archive한 IPA 파일을 가지고 타 맥북 시뮬레이터에 설치를 해야 하는 상황

검색을 수백번해서 너무 너무 오래 걸린 해결방안이라 까먹지 않기 위해 메모한다

다시 한번 적지만.. 아래 해결 방안의 사전 조건은 Build Succeed 🔨

  1. Xcode Build Settings => Build Active Architecture Only : Yes
  1. Xcode Archive => Distribute App으로 앱 추출
  1. Distribution method는 Development로 설정
    (이건 Signing에 따라 다르지만 나는 Development / App Store 두가지 사인만을 사용해서 Ad Hoc는 선택하지 않았다. Ad Hoc 선택하면 에러남)
  1. 그 외 단계 거쳐서 Archive Complete
  1. ~./Library/Developer/Xcode/DerivedData/App-xxxxxxxxxxxxxxxx(16진수 네이밍 가변)/Build/Products/Debug-iphonesimulator 디렉토리 접근
  1. 해당 디렉토리에 있는 App 파일 시뮬레이터 Drag & Drop
  1. 설치 완료

참고 URL 목록
⭐️ http://daplus.net/iphone-iphone-%EC%8B%9C%EB%AE%AC%EB%A0%88%EC%9D%B4%ED%84%B0%EC%97%90-ipa-%ED%8C%8C%EC%9D%BC%EC%9D%84-%EC%84%A4%EC%B9%98%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95/

⭐️ https://www.hahwul.com/2017/10/17/ios-xcode-simulator-appipa/

⭐️ https://stackoverflow.com/questions/26819516/xcode-build-archive-app-for-anyone-to-run-in-a-simulator

profile
Front-end engineer

1개의 댓글

comment-user-thumbnail
2023년 7월 27일

단순히 ipa를 디렉토리에 넣어놓기만 하면 되나요? 전 안돼서요..ㅠ

답글 달기