xcode: Cannot preview in this file - active scheme does not build this file

그루두·2024년 3월 21일

장소 기반 미션 앱

목록 보기
3/3

잘만 되던 프로젝트를 다시 켰다가 Cannot preview in this file : active scheme does not build this file 이 문구와 마주치며 프로젝트의 preview가 불가능했다.

xcode도 재부팅하고 맥도 재부팅해도 그대로여서 아래 링크에서 알려주는 방법대로 실행했다.

https://stackoverflow.com/questions/58416469/cannot-preview-in-this-file-active-scheme-does-not-build-this-file-swiftui-o

terminal을 켜고 아래 문구를 작성한다.

sudo xcodebuild -license

조항에 동의한다는 의미로 agree를 입력하고 xcode를 재부팅하니 preview가 이전처럼 잘 보인다.

profile
계속 해보자

0개의 댓글