Xcode 与 Apple M1 错误:类在 /usr/lib/libauthinstall.dylib 和 /System/Library/PrivateFrameworks/MobileDevice.framework 中实现

tec*_*000 6 macos xcode gfortran xcode12.5

在终端中获取以下消息,使用 运行代码gfortran。似乎是 Big Sur 和 M1 芯片上的 Xcode 12.5:

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.
Run Code Online (Sandbox Code Playgroud)

建议?

小智 1

我的问题与更改 Mac 帐户上的用户名有关。我通过删除~/Library/Developer/Xcode/DerivedData文件夹解决了这个问题。