【问题标题】:Xcode profiling error, missing lib?Xcode 分析错误,缺少库?
【发布时间】:2012-06-01 18:23:15
【问题描述】:
我已经尝试在互联网上找到类似的错误,但似乎我是唯一一个遇到此错误的人。
我所做的是,当我想开始在 Xcode 中分析我的应用程序时,它在编译应用程序后崩溃。在设置中,我已经编辑了方案以使用“调试”构建,但没有任何改变。
崩溃报告显示此特定错误消息。我已经尝试自己弄清楚了,但目前我被卡住了。我只想看看我的应用程序使用了多少内存以及它对内存的作用。
这里是错误信息。希望你能以某种方式帮助我:
Dyld 错误消息:库未加载:
@rpath/DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis
参考自:
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
原因:找不到图片
【问题讨论】:
标签:
ios
xcode
memory
profiling
【解决方案1】:
我在运行instruments 进行端到端测试时遇到了类似的错误:
$ instruments -s devices
dyld: Library not loaded: @rpath/DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis
Referenced from: /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPlugIn.framework/Versions/A/InstrumentsPlugIn
Reason: no suitable image found. Did find:
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPlugIn.framework/Versions/A/../../..//DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis: mmap() error 1 at address=0x10A0DF000, size=0x00005000 segment=__TEXT in Segment::map() mapping /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPlugIn.framework/Versions/A/../../..//DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis
/Applications/Xcode.app/Contents/Developer/usr/bin/../../../Applications/Instruments.app/Contents/Frameworks//DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis: mmap() error 1 at address=0x10A0ED000, size=0x00005000 segment=__TEXT in Segment::map() mapping /Applications/Xcode.app/Contents/Developer/usr/bin/../../../Applications/Instruments.app/Contents/Frameworks//DTBinaryAnalysis.framework/Versions/A/DTBinaryAnalysis
Trace/BPT trap: 5
解决方案(很有趣):重启。
【解决方案2】:
尝试从头开始重新安装 xcode,看看它是否对您有帮助。
这应该可以解决问题。安装通常应该为 xcode 安装各种工具。