iOS/Xcode

[iOS/Xcode] Version of Xcode is incompatible with version of the OS on the device

thoonk: 2022. 6. 17. 16:13
반응형

Xcode에서 실제 디바이스의 OS 버전을 지원하지 않을 때, 오류를 해결하는 방법에 관해 기록합니다. 

 

에러 내용

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.

 

원인

해당 오류가 발생하는 원인은 실제 디바이스의 OS 버전을 최신으로 업데이트하면서 Xcode 에서 지원하는 iOS 버전과 호환되지 않아 발생합니다. 

 

해결 방법

1. 해당 iOS 버전을 아래 Github 레파지토리들 중에서 다운로드합니다. 

 

GitHub - filsv/iOSDeviceSupport: Xcode iPhoneOS DeviceSupport files (6.0 - 15.4)

Xcode iPhoneOS DeviceSupport files (6.0 - 15.4). Contribute to filsv/iOSDeviceSupport development by creating an account on GitHub.

github.com

 

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

 

2. 압축 해제한 파일을 아래 경로에 복사, 붙여넣기 해줍니다.

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

open .

 

3. Xcode 클린 빌드 (Cmd + Shift + K)

4. Derived Data 삭제 (/Users/[user]/Library/Developer/Xcode/DerivedData

5. Xcode 종료

6. 아이폰 연결 해제 및 재부팅

7.  Xcode 재시작 및 연결 후 빌드

 

부족한 점 피드백해주시면 감사합니다👍

 

Ref. 

https://clintmcmahon.com/unsupported-os-version-in-xcode/

 

Unsupported OS Version In Xcode iOS 15 | Clint McMahon

Unsupported OS Version iOS 15 in Xcode. These are the steps I took to get iOS 15 support for my Mac without updating Xcode or the OS.

clintmcmahon.com

반응형