我将DTPerformanceSession.framework添加到OSX应用程序Build Phases中,当我运行应用程序时,它崩溃并出现以下错误:
dyld`dyld_fatal_error:
0x7fff5fc0109c: int3
0x7fff5fc0109d: nop
控制台消息:
dyld: Library not loaded: @rpath/DTPerformanceSession.framework/Versions/A/DTPerformanceSession
Referenced from: /Users/Danger/Library/Developer/Xcode/DerivedData/HSCountingInputStream-dbhgckaaqtaiqueimpvpxllvygvt/Build/Products/Debug/HSCountingInputStream
Reason: image not found
回溯:
* thread #1: tid = 0x5e40d, 0x00007fff5fc0109d dyld`dyld_fatal_error + 1, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
frame #0: 0x00007fff5fc0109d dyld`dyld_fatal_error + 1
frame #1: 0x00007fff5fc02138 dyld`dyld::halt(char const*) + 79
frame #2: 0x00007fff5fc059bd dyld`dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2733
frame #3: 0x00007fff5fc01397 dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 761
frame #4: 0x00007fff5fc0105e dyld`_dyld_start + 54
注意:DTPerformanceSession.framework位于路径: /Applications/Xcode.app/Contents/Developer/Library/Frameworks
答案 0 :(得分:3)
查看精彩页面:Using code generated flags to debug with Instruments。基本上只需要添加框架,构建和删除框架,只需要Xcode找到包含而且只需要一次。或者添加框架并将其标记为“可选”。