Most Read This Week
How to Monitor Swift/iOS8 Applications for Crashes and Performance Issues
Add proper tracking to your app in just four steps
By: Klaus Enzenhofer
Jun. 30, 2014 08:00 AM
Apple just came out with the new programming language Swift. According to Apple, Swift will make it a lot easier and more fun to develop apps for both iOS and OS X. That's in contrast to the current language, Objective-C, which is somewhat antiquated and considered by many to be difficult to use. Although Swift is easier to use, we're sure that there will be issues like crashes, slow request, errors and so on as we already know it from Objective-C and other languages. We also know that business will ask for usage statistics. This is the reason why we immediately investigated Swift and can now show you how easy it is to add proper tracking to your app in just four steps.
Step 1: Add Lib to your Swift Project
Adding dynaTrace agent libraries to SWIFT project
Step 2: Add Bridging Header
Adding bridging header file to SWIFT project
Step 3: Change the Build Settings
Configure "Objective-C Bridiging Header" in the project settings
Finally, set the Defines Module property to "Yes".
Set "Defines Module" in the project settings
Step 4: Run the App and Investigate the Data
Swift App Visits
Crash Reports from the Swift App
Requests Slowing Down the iOS 8 App
Thanks to our iOS development team especially, Allen Schuerholz, for making Swift monitoring that easy and available a week after the official announcement of the new language.
For more from Klaus check out some of his other articles here.
Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Today's Top Reads