오답노트

Flutter Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`

dev.trams 2024. 3. 2. 20:09
반응형

ErrorLog - Unable to find a target named RunnerTests in project Runner.xcodeproj, did find Runner. 원인 - 프로젝트내 ios/Podfile 안에 RunnerTests가 충돌나서 발생한 문제이다. 해결방법 - 대상 프로젝트 내 ios폴더 안에 있는 Podfile안에

target 'Runner' do
  ...
  target 'RunnerTests' do
    ...
  end
end

RunnerTests에 해당하는 코드를 주석처리하거나 삭제하고 pod를 재설치(pod install) 하면 해결된다. Podfile은 config파일이므로 주석은 # 이다.

target 'Runner' do
  ...
  #target 'RunnerTests' do
  # ...
  #end
end

 

참고 문헌 - https://velog.io/@somang9/Unable-to-find-a-target-named-RunnerTests-in-project-Runner.xcodeproj-did-find-Runner-3zf7y1rd

반응형