Skip to content

App crashed after launching with library #4

@malwinder-s

Description

@malwinder-s

Hi, the app started crashing after the ComPDF library was added to my Swift project.

I opted for the trial version of ComPDFKit 2.5.3

I followed the steps given in the README.md file, but still got an issue

Implemented:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        AppInitializer.initializeComponents()
        
        let window = UIWindow(frame: UIScreen.main.bounds)
        self.window = window
        
        viewControllerFactory = ViewControllerFactory()
        
        window.backgroundColor = .white
        window.rootViewController = viewControllerFactory.rootViewController()
        window.makeKeyAndVisible()
        
        Stylesheet.customizeAppearance()
        
        // ComPDFKit 2.5.3 for iOS (2530)
        // Set your online license key here. ComPDFKit is commercial software.
        // Each ComPDFKit license is bound to a specific app bundle id.
         CPDFKit.verify(withOnlineLicense: "I ENTERED MY LICENSE KEY HERE") { code, message in
            print("ComPDFKit online license verification result: \(code) - \(message ?? "No message")")
         }
    
        return true
    }

Issue (Crash):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions