clang error linker command failed with exit code 1

나는 1차 개발이 끝난 후 개발에 합류했다.

때문에 코드를 깃에서 풀 받아 개발 합류해야 하는데... 빌드가 안된다.

 

에러 메세지는 다음과 같다.

>ld: file not found: /Users/MacBookPro/Library/Developer/Xcode/DerivedData/Social_Events-cfnteabiivwfdzcoulzznhmgobhy/Build/Products/Debug-iphoneos/Social_Events.app/Social_Events
clang: error: linker command failed with exit code 1 (use -v to see invocation)

따로 내 에러 메시지를 저장해 두지는 않았기 때문에... 스택오버플로우에서 나와 비슷한 증상을 가진 사람의 에러 메시지를 긁어왔다.

도움이 된 게시글의 링크이다: https://stackoverflow.com/a/29887473/12818001

 

ld: file not found: linker command failed with exit code 1

I've got the following error when building the project in Xcode: ld: file not found /Users/MacBookPro/Library/Developer/Xcode/DerivedData/Social_Events-cfnteabiivwfdzcoulzznhmgobhy/Build/Pr...

stackoverflow.com

 

 

대강 설명해보면

 

일단 프로젝트를 xcode로 연다.

etc-image-0

1. 프로젝트 네비게이터에서 프로젝트를 선택한다.

2. 타깃 밑의 '{프로젝트이름}Tests'를 선택한다.

3. General 탭을 선택하고 Host Application을 변경한다.

4. 빌드한다!

 

 

왜 이런 에러가 발생하는지는 모르겠음. 

스택 오버플로우의 글에 따르면 '프로덕트 이름을 재설정했지만 테스트는 이전의 이름을 찾고 있어서'라고 하는데...

이유를 알게 되면 추가하겠음.