### Activate Bugfender Logger in Objective-C AppDelegate Source: https://github.com/bugfender/bugfendersdk-ios/blob/main/README.md Integrate this code into your Objective-C AppDelegate to activate the Bugfender logger. Remember to replace 'YOUR_APP_KEY' with your specific application key. This setup also allows for optional automatic logging of console output, UI events, and crashes. ```objective-c #import - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... // Activate the remote logger with an App Key. [Bugfender activateLogger:@"YOUR_APP_KEY"]; [Bugfender enableNSLogLogging]; // optional, capture logs printed to console automatically [Bugfender enableUIEventLogging]; // optional, log user interactions automatically [Bugfender enableCrashReporting]; // optional, log crashes automatically BFLog("Hello world!") // use BFLog as you would use NSLog ... } ``` -------------------------------- ### Configure Run Script for Swift Package Manager (SPM) Source: https://github.com/bugfender/bugfendersdk-ios/blob/main/xcode-upload-symbols/README.md Use this script in your Xcode target's Build Phases when integrating BugfenderSDK via Swift Package Manager. Ensure the `BUGFENDER_SYMBOLICATION_URL` is set correctly. ```sh BUGFENDER_SYMBOLICATION_URL=https://dashboard.bugfender.com/ ${BUILD_DIR%Build/*}SourcePackages/checkouts/BugfenderSDK-iOS/xcode-upload-symbols/upload-symbols.sh ``` -------------------------------- ### Configure Run Script for Manual Script Copy Source: https://github.com/bugfender/bugfendersdk-ios/blob/main/xcode-upload-symbols/README.md If you have manually copied the upload-symbols.sh script into your project, use this command in your Xcode target's Build Phases. Replace `` with the actual path. ```sh /upload-symbols.sh ``` -------------------------------- ### Configure Run Script for CocoaPods Source: https://github.com/bugfender/bugfendersdk-ios/blob/main/xcode-upload-symbols/README.md Add this script to your Xcode target's Build Phases if you are using CocoaPods. It executes the Bugfender upload script located within your Pods directory. ```sh ${PODS_ROOT}/BugfenderSDK/upload-symbols.sh ``` -------------------------------- ### Activate Bugfender Logger in Swift AppDelegate Source: https://github.com/bugfender/bugfendersdk-ios/blob/main/README.md Use this code in your AppDelegate to activate the Bugfender logger with your application key. Optional features like UI event logging and crash reporting can also be enabled here. Ensure you replace 'YOUR_APP_KEY' with your actual Bugfender application key. ```Swift @main struct YourAppNameApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene { WindowGroup { ContentView() } } } class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { Bugfender.activateLogger("YOUR_APP_KEY") Bugfender.enableUIEventLogging() // optional, log user interactions automatically Bugfender.enableCrashReporting() // optional, log crashes automatically bfprint("Hello world!") // use bfprint() as you would use return true } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.