Xcode分析错误,缺少lib?

时间:2012-06-01 18:23:16

标签: ios xcode memory profiling

我已经尝试在互联网上找到类似的错误,但似乎我是唯一一个收到此错误的人。

我的工作是,当我想开始在Xcode中分析我的应用程序时,它会在编译应用程序后崩溃。在设置中,我已经编辑了方案以使用“debug”构建,但没有改变任何内容。

崩溃报告显示此特定错误消息。我已经试着自己解决这个问题,但目前我被卡住了。我想要的只是看看我的应用程序使用了多少内存以及它对内存的作用。

这里是错误消息。希望你能以某种方式帮助我:

  

Dyld错误消息:未加载库:   @ rpath的/ DTBinaryAnalysis.framework /版本/ A / DTBinaryAnalysis
  参考自:   /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments   原因:未找到图像

2 个答案:

答案 0 :(得分: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

解决方案(足够有趣):重启。

答案 1 :(得分:0)

尝试从头开始重新安装xcode,看看它是否对您有所帮助。

这应该可以解决问题。安装通常应为xcode安装所有类型的仪器。