728x90
이 글은 Xcode Beta 시뮬레이터를 설치 후에 시뮬레이터가 실행이 정상적으로 되지 않는 경우를 다룹니다.
해결 방안으로 Xcode 기본 개발자 도구를 Xcode Beta로 변경하는 법으로 제시합니다.
문제 상황
VSC에서 flutter 프로젝트를 Xcode Beta 버전 iOS 18 시뮬레이터로 실행이 안된다.
(iOS 17버전에는 한글 입력 문제가 있어 변경하고자 했다.)
아래 콘솔 로그는 프로젝트를 실행 시켰을 때 발생한 것이고, iOS 17.5 시뮬레이터가 설치되지 않았다고 나오는데, 삭제해서 그런 것이다.
Launching lib/main.dart on iPhone 15 in debug mode...
Xcode build done. 2.0s
Failed to build iOS app
Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier:
{ id:BA6DA312-591A-46E2-844F-2F789B684987 }
Ineligible destinations for the "Runner" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.5 is not installed. To use with Xcode, first download and install the platform }
════════════════════════════════════════════════════════════════════════════════
iOS 17.5 is not installed. To download and install the platform, open
Xcode, select Xcode > Settings > Platforms, and click the GET button for the
required platform.
For more information, please visit:
https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
════════════════════════════════════════════════════════════════════════════════
Could not build the application for the simulator.
Error launching application on iPhone 15.
추론
VSC에서 애초에 iOS 18 시뮬레이터의 존재 자체를 모르는 것 같다.
-> Xcode Beta를 기본값으로 설정하는 방법이 필요해 보인다.
해결 방안
1. 터미널에서 현재 활성화된 Xcode 개발자 도구 확인
Xcode가 기본값으로 설정 된 것을 확인할 수 있다.
xcode-select -p
# /Applications/Xcode.app/Contents/Developer
2. Xcode Beta를 기본 개발자 도구로 설정
- password 입력 후, Xcode 개발자 도구 확인
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
# xcode-select -p
# /Applications/Xcode-beta.app/Contents/Developer
결론
이렇게 하면 Xcode Beta 시뮬레이터를 사용할 수 있습니다.
반응형
'Mac OS' 카테고리의 다른 글
로컬 환경에서 LLM 사용하기 - llama3.1 (0) | 2024.07.25 |
---|---|
한글 파일(.hwp) 무료 열기/수정/저장/보관 (0) | 2023.01.08 |
웨일 브라우저 유튜브 4k 화질 제한 해제 (0) | 2022.12.30 |
LinearMouse - 맥에서 마우스 휠 작동을 윈도우처럼 (0) | 2022.12.24 |
youtube-dl 쿠키로 유튜브 로그인 하기 (2) | 2022.12.14 |