You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drag the Airbrake folder to your project and make sure "Copy Items" and "Create Groups" are selected
Add SystemConfiguration.framework to your project
Add CrashReporter.framework to your project
Running the notifier in Swift as framework
Add Airbrake-iOS to the podfile:
use_frameworks!
pod 'Airbrake-iOS'
import Airbrake_iOS in app delegate (if you run into issue with build, please refer to issue #58)
Set up the ABNotifer in your app delegate at the beginning of your 'func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {' (You can find your project ID and API KEY with your project's settings):
When you add Airbrake iOS to your Swift project, Xcode will automatically add the bridging header for 'ABNotifier' class.
When Xcode didn't generate the bridging header for your project, for example, you installed Airbrake iOS from cocoapods, you can create a bridge file manually.
Add a new file to the project and choose Header File as template
Next, Save as [ProjectName]_Bridging_Header.h and make sure it's at the root
of the project.
Open [ProjectName]-Bridging-Header.h and add ABNotifier, for example:
Add [ProjectName]_Bridging_Header.h to your project build settings. In your
project build settings, find Swift Compiler – Code Generation, and next to
Objective-C Bridging Header add your bridging header file. Now you should be
able to access ABNotifier class in your swift project
First, set up the ABNotifer in your app delegate at the beginning of your 'func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {' (You can find your project ID and API KEY with your project's settings):
Installation
Using cocoapods
Directly from source code
SystemConfiguration.framework
to your projectCrashReporter.framework
to your projectRunning the notifier in Swift as framework
Add Airbrake-iOS to the podfile:
import Airbrake_iOS
in app delegate (if you run into issue with build, please refer to issue #58)Set up the ABNotifer in your app delegate at the beginning of your
'func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {'
(You can find your project ID and API KEY with your project's settings):And you're good to go.
Running the notifier in Swift as static library
When you add Airbrake iOS to your Swift project, Xcode will automatically add the bridging header for 'ABNotifier' class.
When Xcode didn't generate the bridging header for your project, for example, you installed Airbrake iOS from cocoapods, you can create a bridge file manually.
Add a new file to the project and choose Header File as template
Next, Save as [ProjectName]_Bridging_Header.h and make sure it's at the root
of the project.
Open [ProjectName]-Bridging-Header.h and add ABNotifier, for example:
Add [ProjectName]_Bridging_Header.h to your project build settings. In your
project build settings, find Swift Compiler – Code Generation, and next to
Objective-C Bridging Header add your bridging header file. Now you should be
able to access ABNotifier class in your swift project
First, set up the ABNotifer in your app delegate at the beginning of your
'func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {'
(You can find your project ID and API KEY with your project's settings):For more information please visit our official GitHub repo.
The text was updated successfully, but these errors were encountered: