본문 바로가기

소프트웨어 /Flutter

[Flutter]플러터 ios 오류 - Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ?? (0x1160dc2b8). One of the two will be used. Which one is undefined.

반응형

개발한지 조금 지난 예전 버전의 프로젝트를 마이그레이션을 진행했다.

 

마이그레이션을 하고 빌드를 하려니 다음과 같은 에러가 나왔다.

 

Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ??   (0x1160dc2b8). One of the two will be used. Which one is undefined.

정확히 무슨 에러인지는 모르겠다...

구글링 하며 찾던 중 다음과 같은 해결 방법으로 에러를 해결했다.

 

https://stackoverflow.com/questions/66231339/flutter-amsupporturlconnectiondelegate-is-implemented-in-both-error

 

Flutter AMSupportURLConnectionDelegate is implemented in both ?? Error

I am facing many issues since I migrated my project to an Apple Silicon mac. I finally managed to reduce the problems but not sure the answer to this. Running "flutter pub get" in Flutter...

stackoverflow.com

 

ios 폴더에 Podfile에 들어가서 맨 아래쪽 마지막 end 위에 다음과 같이 추가해주었다.

 

  installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end

 

 

입력 후 터미널 창을 열어 다음과 같은 순서로 입력해준다.

 

cd ios

pod install

 

ios 폴더로 이동해서 podfile을 설치해주자...

그러고 런하면 에러가 발생하지 않는다!!

 

시뮬레이터가 x64버전이어서 그런가..? 시뮬레이터 관련 문제같은데.. 사실 정확한 원인을 모르겠다

근데 우선 해결 했으니.. 넘어가자......