We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
AppGallery Connect ExamplesCrashiOS

iOS

The Xcode project contains the Objective-C and Swift sample code for testing the Crash service.

Expand

Sample Code

Find It on Gitee

Find It on GitHub

Objective-C and Swift

Click here

Click here

NOTICE

If you need to run the sample code directly, pay attention to the following points:

  1. Download the agconnect-services.plist file of your app, and copy the file to the root directory of the demo project.

  2. Run the pod install command to add a dependency for the project.

  3. Disable the debugging mode in Xcode before testing the crash information collection function, as the Crash SDK does not collect crash data in debugging mode.

For details, please refer to the README file of the demo project.

Search
Enter a keyword.