close
Class AMSupportURLConnectionDelegate is implemented in both, class amsupporturlconnectiondelegate, AMSupportURLConnectionDelegate is implemented in both, Class AMSupportURLConnectionDelegate is implemented, solve class amsupporturlconnectiondelegate

[Solved] Class AMSupportURLConnectionDelegate is implemented in both

Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. Class AMSupportURLConnectionDelegate is implemented in both in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Class AMSupportURLConnectionDelegate is implemented in both Error Occurs ?

Today I am trying to build flutter app on macOS Catalina but I am getting the following error:

Running pod install...                                             13.2s
Running Xcode build...
Xcode build done.                                            6.7s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[65074]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f66de518) and ?? (0x1160d82b8). One
    of the two will be used. Which one is undefined.
    objc[65074]: Class AMSupportURLSession is implemented in both ?? (0x1f66de568) and ?? (0x1160d8308). One of the two
    will be used. Which one is undefined.
    ** BUILD FAILED **


Xcode's output:
↳
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    error: The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target:
    armv7. (in target 'Runner' from project 'Runner')

Encountered error while building for device.

How to Solve Class AMSupportURLConnectionDelegate is implemented in both Error?

  1. How to Solve Class AMSupportURLConnectionDelegate is implemented in both Error?

    To Solve Class AMSupportURLConnectionDelegate is implemented in both Error flutter clean inside the project directory. then run app flutter build ios Your error may be solved.

  2. Class AMSupportURLConnectionDelegate is implemented in both Error

    To Solve Class AMSupportURLConnectionDelegate is implemented in both Error flutter clean inside the project directory. then run app flutter build ios Your error may be solved.

Solution 1 : Flutter clean

I Solved this error by following command.

  1. flutter clean inside the project directory.
  2. then run app
  3. flutter build ios
  4. Your error maybe solved.

Solution 2 : flutter build ios –verbose

This error also occurs when you have an error in your code that may be not visible error just like profile is missing or something like that. so that you have to find that error first So, please run flutter build ios --verbose and read the output carefully.

In my case, there were other issues of the failure of flutter build ios. Problem was I forgot to add GoogleService-Info.plist in runner folder and also my ios deployment target was less than the requirement of flutter packages.

Solution 3 : Rebuild project

If You have no any solution then just rebuild project.

  1. rebuild new flutter project
  2. open terminal
  3. move to ios directory (project)
  4. pod init
  5. pod install
  6. modify ios/Podfile file as this content

Solution 4 : Pod Install

I’ve fixed the issue by doing this. hope it will work for you also

cd ios
pod init
pod install

Solution 5

Normally it is working after these steps

  1. flutter clean
  2. flutter pub get
  3. cd ios
  4. pod install
  5. cd ..
  6. flutter buid ios

This time it worked for me with an additional command flutter upgrade pub as I was using the newer user of flutter with old pub file. I hope it may help someone using M1 processor.

Summery

So, It’s All About Class AMSupportURLConnectionDelegate is implemented in both Errors. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.

Also Check Out Below Tutorials

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *