Xcode with Apple M1 error: Class is implemented in both /usr/lib/libauthinstall.dylib and /System/Library/PrivateFrameworks/MobileDevice.framework

Viewed 3419

In Terminal getting the following message running code using gfortran. Seems to be an Xcode 12.5 on Big Sur and M1 chip:

objc[1554]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f2022c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1147bc2b8). One of the two will be used. Which one is undefined.
objc[1554]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f2022c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1147bc308). One of the two will be used. Which one is undefined.

suggestions?

2 Answers

My issue was related to changing the username on my Mac account. I resolved this by deleting the ~/Library/Developer/Xcode/DerivedData folder.

Solved this problem. Force delete everything in ~/.pub-cahe/hosted/pub.dartlang.org and then in the project in the flutter pub get console

Related