gpt4 book ai didi

ios - xcode出现错误时显示自定义框架的实现

转载 作者:行者123 更新时间:2023-11-30 12:59:04 31 4
gpt4 key购买 nike

出现错误时,xcode 是否应该显示自定义框架的实现?

我制作了一个自定义框架,并且运行良好,它看起来像这样: enter image description here

在我的 View Controller 中,我有一个按钮操作,它调用框架中的方法

@IBAction func buttonPressed(sender: UIButton) {
dview.exchangeSubviewAtIndex(0, withSubviewAtIndex: 2, animated: true)
}

由于我只有 3 个 subview ,因此按钮操作将起作用,但是,如果我这样做:

@IBAction func buttonPressed(sender: UIButton) {
dview.exchangeSubviewAtIndex(0, withSubviewAtIndex: 20, animated: true)
}

它会崩溃,但没关系,因为我传递了一个数组中不存在的值,但我没想到xcode会显示框架的实现,相反,xcode 将我带到实现中的代码行:

enter image description here

基本上,我不希望它显示框架中代码的实现..

最佳答案

您的框架包含调试信息,其中包括文件位置。

由于您使用的是同一台计算机,lldb 调试器能够找到应用崩溃的源代码。

您可以将框架的 Xcode 项目移动到 Mac 上的不同位置以查看差异。

关于ios - xcode出现错误时显示自定义框架的实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40051180/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com