我试图在Xcode中使用调试器来篡改我的一种方法。该应用程序是非常裸的骨头,只是一个示例类。当我设置一个断点并运行时,LLDB调试器窗格按照预期在Xcode中打开。但是,如果我尝试在我的方法中执行打印命令,我会收到以下错误:
Error in auto-import: Failed to load linked library Cocoa of module ExampleAppTests - errors: Looking for "@rpath/Cocoa.framework/Cocoa",error: not a string object Looking for "/Users/Elliot/Library/Developer/Xcode/DerivedData/ExampleApp-aqpflidffjffyzdxfjdfbjijvsxq/Build/Products/Debug/Cocoa.framework/Cocoa",error: not a string object Looking for "/BinaryCache/arclite/arclite-49.1~7/Symbols/BuiltProducts/Cocoa.framework/Cocoa",error: not a string object Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Library/PrivateFrameworks/Cocoa.framework/Cocoa",error: not a string object Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Library/Frameworks/Cocoa.framework/Cocoa",error: not a string object Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/Cocoa.framework/Cocoa",error: not a string object Looking for "/Applications/Xcode6-Beta6.app/Contents/SharedFrameworks/Cocoa.framework/Cocoa",error: not a string object
如果我输入repl并执行命令,我会收到相同的错误。