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?
- 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.
- 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.
flutter clean
inside the project directory.then run app
flutter build ios
- 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.
- rebuild new flutter project
- open terminal
- move to ios directory (project)
- pod init
- pod install
- 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
flutter clean
flutter pub get
cd ios
pod install
cd ..
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
- flutter packages get failed depends on flutter_test any from sdk which requires SDK version <2.0.0, version solving failed
- The instance member ‘x’ can’t be accessed in an initializer.
- Error getting sensor data: DioError [DioErrorType.RESPONSE]: XMLHttpRequest error.
- LateInitializationError: Field ‘[email protected]’ has not been initialized
- Flutter problems: “Could not resolve all artifacts for configuration ‘:classpath’ ”
Leave a Reply