您可以使用以下代码向应用添加一个按下即会导致崩溃的按钮。该按钮标有“测试崩溃”。 SwiftUI UIKit 更多. Button("Crash") { fatalError("Crash was triggered") }.
確定! 回上一頁