在您的 main.m 文件中添加一些代码,如下所示
#import "BLAppDelegate.h"
#import "OneAPM/OneAPM.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
[OneAPM startWithApplicationToken:@"token_string_get_from_oneapm"];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
最小 iOS 目标:6.0
OneAPM 通过 CocoaPods 提供支持。为了安装
它,只需将以下行添加到您的 Podfile 中
pod "OneAPM"
OneAPM 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。