Sure, Why not?

Skipping duplicate build file in Compile Sources build phase 본문

⚙️

Skipping duplicate build file in Compile Sources build phase

joho2022 2025. 7. 23. 21:00

Skipping duplicate build file in Compile Sources build phase

 

 

Xcode가 해당 파일이 중복으로 들어가 있다고 경고를 준다.

분명 파일은 하나인데 왜일까.

 

 

 

How to fix "Skipping duplicate build file" warning in Xcode | Sarunw

There might be several reasons that cause this error. Here are the solutions that fix it for me.

sarunw.com

Merge 충돌이나 설정 변경으로 인해 프로젝트 내부에 같은 파일이 빌드 대상에 두 번 지정된 경우 문제 원인으로 나타낼 수 있다고 한다.

 

 


해결 방법

1. 추천 설정으로 업데이트

Remove Duplicate References in Build Phase 항목을 적용하면 자동으로 중복이 제거됨

 

 

 

2. Xcode 내에서 수동 제거

Project Navigator → 대상(Target) → Build Phases → Compile Sources 또는 Copy Bundle Resources

같은 파일이 두 개 있으면 하나를 선택해 삭제한다.