Flutter iOS Error Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x203913130)

1,717

I had this same problem, however I had an additional error:

    Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
    deployment target versions is 9.0 to 15.2.99. (in target 'AppAuth' from project 'Pods')
    /Users/zack/Desktop/halseon/Merchant/halseon_merchants/ios/Pods/Pods.xcodeproj: warning: The iOS
    Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
    deployment target versions is 9.0 to 15.2.99. (in target 'GoogleSignIn' from project 'Pods')

To fix this:

  1. Open ios/Pods/Pods.xcodeproj in Xcode
  2. Change the iOS Deployment info from 8.0 to 9.0

iOS Deployment info (Image Reference)

In the console, run 'flutter run' and it should run the app in the iOS simulator.

Share:
1,717
Jai Techie
Author by

Jai Techie

Software Developer with total 5+ years of experience. Technologies Worked With Flutter | Dart | Php Codeigniter | Android Native - Java | AWS | Lambda | Redis | Express - Node.js | MongoDB | MySQL | SQLite | GIT

Updated on January 03, 2023

Comments

  • Jai Techie
    Jai Techie over 1 year

    Hi am facing an issue while running flutter project in MacBook Air M1 chip Lap. Tried all possibilities couldn't find where is the exact problem.

    All basic solutions like flutter clean, flutter pub get, pod deintegrate & install, flutter build ios, flutter run but still same issue. only on iOS simulator not deploying.

    Any solution for this. Thanks in advance.

    Error

    Launching lib/main.dart on iPhone 13 in debug mode...
    Running pod install...                                              5.3s
    Running Xcode build...                                                  
    Xcode build done.                                           104.1s
    Failed to build iOS app
    Error output from Xcode build:
    ↳
        objc[25282]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x203913130) and
        /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103bc02c8). One of the two will be used. Which one is undefined.
        objc[25282]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x203913180) and
        /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103bc0318). One of the two will be used. Which one is undefined.
        ** BUILD FAILED **
    

    flutter doctor -v

    [✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-arm, locale
        en-IN)
        • Flutter version 2.8.1 at
          /Users/macsystem/Documents/developer/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 77d935af4d (7 weeks ago), 2021-12-16 08:37:33 -0800
        • Engine revision 890a5fca2e
        • Dart version 2.15.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
        • Android SDK at /Users/macsystem/Library/Android/sdk
        • Platform android-32, build-tools 32.0.0
        • Java binary at: /Applications/Android
          Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.11.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2020.3)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    
    [✓] Connected device (2 available)
        • iPhone 13 (mobile) • 05EC9698-3C26-44B9-8DB0-B53C7B6576F3 • ios
          • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
        • Chrome (web)       • chrome                               • web-javascript
          • Google Chrome 97.0.4692.99