본문 바로가기
Development Solutions/iOS & OS X

[Solved][Ios] Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`.

by Dev Diary Hub 2023. 8. 17.
반응형

[Solved][Ios]

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

 

 

에러메시지 (Error situation)

flutter 앱을 ios버전으로 빌드하는 중에 발생한 에러.

어떻게 해결해야하나 찾아보던 중 해결책을 발견하여 공유한다.

[!] Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`.

 

 

해결 방법 (Solution)

ios/Podfile 의 RunnerTests 관련 코드를 제거하면 된다!

즉, 아래의 원본 코드를

[Eng](Just remove the RunnerTests-related code in ios/Podfile!
That is, the original code below)

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

아래 코드처럼 변경하면 되겠다.

[Eng](You should change the code like below.)

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  # target 'RunnerTests' do
  #   inherit! :search_paths
  # end
end
반응형