'when launching terminal macos get error Class ATCRTRestoreInfoFTABSubfile is implemented in both

When first launch the termainal always get this error.

objc[9318]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x207c11eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d984f8). One of the two will be used. Which one is undefined.
objc[9318]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x207c11f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d98548). One of the two will be used. Which one is undefined.
objc[9318]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x207c11f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d98598). One of the two will be used. Which one is undefined.
objc[9318]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x207c11fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d985e8). One of the two will be used. Which one is undefined.
objc[9318]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x207c11ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d98638). One of the two will be used. Which one is undefined.
objc[9318]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x207c12040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d98688). One of the two will be used. Which one is undefined.
2022-03-15 19:51:39.868 xcodebuild[9318:34818] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-15 19:51:39.869 xcodebuild[9318:34818] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore


Solution 1:[1]

Apparently it can be fixed using sudo xcode-select -r

I saw it twice but I don't know how to reproduce manually, or maybe I fixed it, I don't know.

Sources

Solution 2:[2]

Neither "installing components" via Xcode, nor resetting the developer directory using sudo xcode-select -r worked for me. However,

sudo xcode-select -s /Library/Developer/CommandLineTools

worked. Thanks to Royite on Apple's Developer Forums for this solution.

Solution 3:[3]

On my 12.2.1, the error disappears after "installing component" from Xcode.

Solution 4:[4]

Open XCode, it will prompt you to install some missing components.

Solution 5:[5]

This worked for me:

Remove CommandLineTools

sudo rm -rf /Library/Developer/CommandLineTools

Reinstall CommandLineTools

xcode-select --install

Select CommandLineTools

sudo xcode-select -s /Library/Developer/CommandLineTools

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 dohzya
Solution 2 Sagar
Solution 3 fabioferrero
Solution 4 dontmentionthebackup
Solution 5 byaruhaf