objc[14025]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib

objc[14025]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1efb7ac10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x12c2b82b8). One of the two will be used. Which one is undefined. objc[14025]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1efb7ac60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x12c2b8308). One of the two will be used. Which one is undefined. ** BUILD FAILED **

Solutions i tried:

  • flutter clean inside the project directory.
  • Flutter pub get Pod update
  • Pod update
  • Pod repo update
  • Restarted Xcode and Mac
  • pod install
  • flutter build ios

I tried flutter clean, pod update, install, i couldn't run the app on ios emulator,. every time i get the same error again and again. Its not an issue with info plist or but i couldn't find the exact problem,. Tried almost all the possible solution from various sources, I have been sitting n this one issue for the past 3 days.. Please if any body could help... It will be really helpful. Please.


Didi you post the full error message? I had a similar error message. However, in my case the full error log contained a message about Xcode missing an architecture necessary to build this project for the iOS Simulator:

    Error output from Xcode build:
↳
    objc[7363]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2b90)
    and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b42c8).
    One of the two will be used. Which one is undefined.
    objc[7363]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f92f2be0) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1079b4318). One of
    the two will be used. Which one is undefined.
    ** BUILD FAILED **


Xcode's output:
↳
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/ralfweinbrecher/Development/flutter-projects/infoapp/ios/Runner.xcodeproj: error: The linked framework
    'Pods_Runner.framework' is missing one or more architectures required by this target: arm64. (in target 'Runner'
    from project 'Runner')

Here Xcode complains about missing the arm64 platform. I fixed this with adding the following line to my Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
      target.build_configurations.each do |config|
        config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
        # This line was added!
         config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
       config.build_settings['ENABLE_BITCODE'] = 'NO'
     end  
   end
end

After fixing the problem of the missing architecture the other error message was gone too.


Well!I had a similar issue.I execute flutter build ios is successful in macOS's terminal,but an error occurred in jenkins,the build of command is the same. you should check your compilie environment first,try flutter doctor,and then make sure that your environment is well. enter image description here