触发新断点时Xcode15卡顿3分钟后崩溃,求解决方法
解决Xcode15触发断点卡顿崩溃(CoreGraphics模块缺失)问题
问题现象
启动应用触发新断点时,Xcode15卡顿3分钟后崩溃,启动后即出现卡顿,日志提示CoreGraphics模块的pcm文件不存在,该问题关联第三方SDK TXLoginoauthSDK 的 TXLoginUIModel.o 文件。
报错日志:
/Users/sanjiusijiushijingshan/szplusnews/SZPlusNews/SZPlusNews/ThirdParty/TXLoginoauthSDK/TXLoginoauthSDK.framework/TXLoginoauthSDK(TXLoginUIModel.o) 0x00002133: unable to locate module needed for external types: /Users/apple/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/DR87TTK87G07/CoreGraphics-1TH4RJJRQVFOC.pcm error: '/Users/apple/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/DR87TTK87G07/CoreGraphics-1TH4RJJRQVFOC.pcm' does not exist Debugging will be degraded due to missing types. Rebuilding the project will regenerate the needed module files.
解决方案
- 清理DerivedData缓存:打开Xcode的
Settings>Locations,找到DerivedData路径并删除文件夹内所有内容;或执行命令:rm -rf ~/Library/Developer/Xcode/DerivedData/* - 清理项目构建缓存:按
Cmd+Shift+K清理当前项目构建产物,再按Cmd+Option+Shift+K清理全局构建缓存 - 更新第三方SDK:检查
TXLoginoauthSDK版本,替换为适配Xcode15的最新版本,重新添加到项目并确保Embed & Sign配置正确 - 验证CoreGraphics依赖:在项目
Build Phases>Link Binary With Libraries中确认添加了CoreGraphics.framework;检查Build Settings中Enable Modules (C and Objective-C)设置为YES - 重置Xcode模块缓存:关闭Xcode,执行命令
rm -rf ~/Library/Developer/Xcode/ModuleCache.noindex/*,重启Xcode后重新构建项目
内容的提问来源于stack exchange,提问作者jrjian
相关产品推荐
相关产品推荐

