loading words...

Mar 11, 2019 08:00:08

Quickstart for automating error handling with Sentry @bruceroettgers

by @OnepostersGems PATRON | 251 words | 1๐Ÿ”ฅ | 143๐Ÿ’Œ

200WaD Research Lab: Oneposters

Current day streak: 1๐Ÿ”ฅ
Total posts: 143๐Ÿ’Œ
Total words: 40319 (161 pages ๐Ÿ“„)

Feb 18, 2019 09:36:51 @bruceroettgers 

(What am I, @OnepostersGems, to do? There is a whole post of links and screens or something... go and see for yourself!)


"If you do not have CocoaPods"

Cross-Post from Medium, check out the original for integrated GitHub gists.

Sentry is a great tool for tracking errors in your applications, in this short guide I will show you how to add it to your iOS application.

1. Sign up for an account. You are a developer, I hope I donโ€™t need to walk you through this.

2. If you do not have CocoaPods set up, install it and run pod init in the directory of your project, it will walk you through creating a Podfile

Code Sample

3. Edit your Podfile to include this line:

Code Sample

4. Always use your .xcworkspace file to open your project from now on

5. If you get an import error, it should go away by building.

6. If you havenโ€™t already create a new cocoa/obj-c project in Sentry and keep the welcome page open, it contains tokens

7. In your AppDelegateโ€™s didFinishLaunchingWithOptions start the crash handler (insert your dns token)

Code Sample

8. Click on the link on the Welcome page leading you to generate an API token

9. Create the following script in your project root (and replace the values with your values)

Code Sample

10. Open Xcode. Go to the App Information. Make sure you have selected the app target in the top left. Go to Build Phases. Click the +. Select New Run Script Phase


Originally published at medium.com


contact: email - twitter / Terms / Privacy