MacOS 从Catalina升级到Monterey,发现电脑本地的python不能用了,pycharm中的venv也不能用了,报错信息
dyld[48981]: Symbol not found: _OBJC_IVAR_$_NSFont._fFlags
Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
python3: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
python3: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
解决步骤参考此博客,各种办法都尝试了,最后还是重装大法好,我的xcode不算是重装,直接在App Store中升级就好了,应该是系统升级后,没有更新xcode,导致的不兼容[iOS]Xcode "dyld: Symbol not found: _$s15_ObjectiveCTypes01_A11CBridgeablePTl" 问题解决过程记录 - 简书
升级后,再执行以下命令就可以了
sudo xcodebuild -license