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
3. Edit your Podfile to include this line:
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)
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)
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