'Class X is implemented in both places One of the two will be used Which one is undefined M1

I use Mac M1 and After I upgrade Xcode 13.3.1 , I got this error when I make a build for the project:

Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1ec461eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103b884f8). One of the two will be used. Which one is undefined

here is Flutter doctor:

[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-arm, locale en-SY)  
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)  
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)  
[✓] Chrome - develop for the web  
[✓] Android Studio (version 2021.2)  
[✓] IntelliJ IDEA Community Edition (version 2021.2.3)  
[✓] VS Code (version 1.67.1)  
[✓] Connected device (2 available)  
[✓] HTTP Host Availability  
• No issues found!  

After I made a search, they said the problem was from flutter_svg library however, I tried to downgrade the version of the library but nothing changed.

Plus I tried these commands:

cd ios
rm -rf ~/Library/Caches/CocoaPods
rm -rf Podfile.lock
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*

then these:

pod deintegrate
pod setup
pod install

and I still got same error Any suggestions :(

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source