From the course: App Center: Continuous Integration and Delivery for iOS

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Generate a test crash

Generate a test crash

From the course: App Center: Continuous Integration and Delivery for iOS

Start my 1-month free trial

Generate a test crash

- [Instructor] In this we're gonna start working with the App Center diagnostics SVK. We already have this enabled, which means it's running inside our app, either on a device or in the simulator. That means when the app crashes, we'll get a log file written locally. The next time the app starts up, that log file will get pushed up to the App Center portal. And there's two things we wanna do here. We wanna first, get our app to crash. That's what we're gonna discuss in this section. And then second we wanna use the App Center portal to look at the crash reports. We'll do that in the next section. In order to get your app to crash, you could of course, write some buggy code and then run your app in such a way that you intentionally hit that bug. That's not very elegant though. And this type write here, MSCrashes, gives you a nicer way to achieve the same thing. This type represents the diagnostic service to your running application. So it gives you methods to control and examine the…

Contents