카테고리 없음

[Xcode trouble shooting] NoBuildableEntriesError 해결

eundeang 2023. 3. 23. 01:14

이 에러를 해결할 수 있는 방법에는 

 

1) 프로젝트 생성 시 Unit Test Option 해제

2) sudo xcodebuild -license 입력 후 라이센스 동의

3) iCloud Drive가 아니고, root 권한을 가지고 있는 로컬 폴더 생성 후 해당 폴더에서 작업

 

이 있다.

 

이때 내가 사용한 방법은 2번이다 .

 

라이센스를 허용해주기 위해 터미널에 들어가

 % sudo xcodebuild -license

이 명령어를 적었으나

 

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

이라는 xcode를 커맨드로 빌드하는 과정에 CommandLineTools를 사용하지 못한다는 에러이다.

 

그렇기 때문에 권한을 바꿔주는 명령어를 입력해주었다 

% sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

 

% sudo xcodebuild -license

 

이런식으로 나오면 성공