👩🏻‍💻 TIL

Failed to prepare the device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.

ji-hyun 2023. 5. 8. 21:52

갑자기 iOS 폰을 빌드하다가 이런 에러를 마주쳤다.

 

 

 



이 오류는 iOS 디바이스를 개발할 준비를 하지 못했다는 것을 나타낸다.

이 문제는 Xcode의 설치된 버전과 iOS 디바이스의 운영체제 버전이 호환되지 않을 때 발생할 수 있다.

이 경우, Xcode를 업데이트하여 호환성을 보장하거나, iOS 디바이스의 운영체제 버전을 업데이트하여 호환성을 보장해야 한다.

이게 아니라면 Mac 및 디바이스를 다시 시작하여 호환성을 올바르게 감지할 수도 있다.

 

 

 

 

 

 

 

 

 

불현듯 최근에 iOS 를 업데이트했던 것이 생각났고 Xcode 를 업데이트할 수 밖에 없는건가.. 하는 좌절감이 들었다. 

 Xcode 의 iOS 디바이스 호환성을 확인할 수 있는 링크
https://developer.apple.com/kr/support/xcode/

 

 

 

 

심지어 Xcode 를 업데이트하려면 맥북도 업데이트 해야 하는 귀찮은 상황이 발생하였다.

하지만 방법을 찾아보니 꼼수가 있었고 성공하였다. 그 방법은 ..

 

 

 

 

 

 

 

 

 

 

맥북에서 finder 를 열고 응용프로그램에서 Xcode 를 오른쪽 클릭 후 "패키지 내용 보기" 를 클릭해서 다음과 같은 경로로 들어간다.

 

 

DeviceSupport 를 보면 iOS 디바이스 지원버전이 나열되어있다.

여기 확인하면 역시나 내 디바이스 버전이 없더라..

 

 

 

 

 

 

 

 

 

https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport

 

GitHub - iGhibli/iOS-DeviceSupport: This repository holds the device support files for the iOS, and I will update it regularly.

This repository holds the device support files for the iOS, and I will update it regularly. - GitHub - iGhibli/iOS-DeviceSupport: This repository holds the device support files for the iOS, and I w...

github.com

 

고마우신 분이 iOS 디바이스 지원버전 파일을 만들어 주셨다.. 감사해요

여기서 내가 필요한 파일을 다운로드 받은 후 아까 그 경로에다가 복붙한다!!!!!!!!!!!!!!!

 

 

 

 

 

 

 

 

 

그러면 성공적으로 빌드 성공!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

 

 

 

 

다음 글을 참고하여 따라 한 방법이다.

자세한 방법은 이것을 참고하면 된다.

 

 

 

 

 

 

https://stackoverflow.com/questions/71618452/failed-to-prepare-device-for-development-with-xcode-13-2-1-and-ios-15-4-devic/71667372#71667372

 

"Failed to prepare device for development." with Xcode 13.2.1 and iOS 15.4 device

I'm getting message "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in ord...

stackoverflow.com

 

 

 

 

 

 

 

 

'👩🏻‍💻 TIL' 카테고리의 다른 글

AWS 개념 정리  (0) 2023.06.03
미디에이션 어댑터란?  (1) 2023.05.13
[iOS] CocoaPod  (0) 2023.01.12
[iOS] Automatically manage signing  (0) 2023.01.12
[Java] 추상 클래스와 인터페이스 차이 (2탄)  (0) 2023.01.04