是xcode,假设在出现错误时显示自定义框架的实现?
我已经制作了一个自定义框架,它的工作正常, 它看起来像这样:
在我的viewcontroller中我有一个按钮动作,它调用框架中的方法
@IBAction func buttonPressed(sender: UIButton) {
dview.exchangeSubviewAtIndex(0, withSubviewAtIndex: 2, animated: true)
}
因为我只有3个子视图按钮动作才有效, 但是,如果我这样做:
@IBAction func buttonPressed(sender: UIButton) {
dview.exchangeSubviewAtIndex(0, withSubviewAtIndex: 20, animated: true)
}
它会崩溃,而且没关系,因为我传递了一个确实存在于数组中的值,但我没想到xcode会显示实现框架, 相反,xcode将我带到了实现中的代码行:
基本上,我不希望它在框架中显示代码的实现。答案 0 :(得分:0)
Your framework contains debug information which includes file locations.
Since you are using the same machine, lldb
debugger is able to locate the source code where your app crashed.
You can move the Framework's Xcode project to different location on your Mac to see the difference.