Bugly iOS SDK User Guide
Preparation before access
SDK integration
-
Integration via CocoaPods -
Manual integration
Bugly iOS SDK minimum compatible system version iOS 7.0
Integration via CocoaPods
pod 'Bugly'
be careful:
Execute on the command line
pod search Bugly , as shown
Bugly If the version is not the latest, execute it first
pod repo update Operation updates the content of the local repo
about
CocoaPods For more information CocoaPods official website 。
Manual integration
-
download Bugly iOS SDK -
Drag Bugly.framework File to Xcode project (please check Copy items if needed Options) -
Add dependent libraries SystemConfiguration.framework Security.framework libz.dylib or libz.tbd libc++.dylib or libc++.tbd
Initialize SDK
Import header file
#import <Bugly/Bugly.h>
If it is
Swift Project, please enter the corresponding
bridging-header.h Import in
Initialize Bugly
-
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [Bugly startWithAppId: @ "Replace with your AppId here"]; return YES; }
-
Swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { Bugly.startWithAppId ("Replace with your AppId here") return true }