How to add Flurry Analytics into your Xcode project (Swift)
Flurry Analytics from Yahoo! is an amazing tool that allows you improve your iOS apps. It’s free and easy to install in your Xcode project
How to integrate Flurry Analytics into Xcode project
- Register on Flurry Analytics website as developer and add your first iPhone app to the service to generate your API key.
- Download Flurry SDK


3. Open your Xcode project / Build Phases / Link Binary With Libraries and add two library: Security and SystemConfiguration.


4. Tap your app folder, from app menu select File / Add files and this two files from downloaded folder / Flurry-iOS-7.5.2 / Flurry. Flurry.h and libFlurry_7.5.2.a. Don’t forget to check “copy items if needed”:


5. Again select your project folder and tap Command + N, from source section add new header file. Name it somehow. My header file was named “Header-Test-App.h”.


6. Open this header file and add “#import “Flurry.h” to it.


7. Open your project build settings, tap show all settings and search for “bridging header” and enter path to the file like that (folder_name/header_file_name.h):


8. Open ViewController and in the viewDidLoad try type “Flurry”, if you see suggested flurry methods — congratulations! Flurry was successfully attached to the project:


9. In the viewDidLoad write Flurry.startSession(“your_api_key”):

10. Write Flurry.logEvent(“name_it_somehow”) to start tracking:

11. Run the app in iPhone Simulator or on a device. Open https://y.flurry.com/metrics/1 to see the analytics in real time, to make sure that everything works fine.


12. And the final step: read its simple documentation to use all its amazing features.
P.S. Currently Yahoo! is working on new version of the analytics. This page gives you old interface with all bunch of features and access to all your apps. But this page has early access to its new interface.

