—>首先进入腾讯bugly链接在此下载bugly的SDK
然后在根文档集成SDK(我使用的是手动集成)
1.拖拽Bugly.framework文件到Xcode工程内(请勾选Copy items if needed选项)
2.添加依赖库
SystemConfiguration.framework
Security.framework
libz.dylib
其实还有一个必要依赖库文档上没说 libc++.tbd
3.编译一下通过后在AppDelegate.m中导入头文件#import <Bugly/Bugly.h>
4.在方法:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[Bugly startWithAppId:@"77f2b58dd7"];
return YES;
}
注意77f2b58dd7为你的bugly的appid
—APPid的获取
屏幕快照 2016-09-22 11.30.17.png![屏幕快照 2016-09-22 11.31.08.png](https://img.haomeiwen.com/i735042/968413aecfdb78e3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
网友评论