danielsaidi / PrintingKit

PrintingKit is a Swift SDK that helps you print images, strings, views, PDFs etc. in Swift and SwiftUI.
MIT License
95 stars 12 forks source link

Crash - Print Image on Mac OS #8

Closed asifbilal786 closed 2 months ago

asifbilal786 commented 3 months ago

Hi, I am facing a crash issue in Mac OS when an application tries to print an image using this library as given in the below image

Screenshot 2024-07-04 at 10 49 07 PM

Could you please look into this issue?

danielsaidi commented 3 months ago

Hi @asifbilal786

Thank you for reporting this! Does it happen with all images?

I'll take a look when I get some time, and will also happily merge any PR that fixes it.

asifbilal786 commented 3 months ago

Yes, it's happening to all images. It works best for iOS but crashes for the MacOS platform.

By the way, I was enjoying using this library until this happened. I appreciate it.

danielsaidi commented 3 months ago

Thank you for letting me know, I will check it out.

In the meantime, can you add more information about your runtime here, such as macOS version, Xcode/Swift version, etc.?

asifbilal786 commented 3 months ago

Yes sure. Below are the details:

Xcode Version: 15.4 Swift Version: 5.10 Mac OS: Sonoma 14.5

danielsaidi commented 3 months ago

Thank you! 👍

asifbilal786 commented 2 months ago

@danielsaidi Have you had any success resolving this issue?

danielsaidi commented 2 months ago

Hi @asifbilal786

I haven't yet, but I'll let you know once I have and will be happy to merge any PR that solves it meanwhile.

asifbilal786 commented 2 months ago

@danielsaidi with updating through SPM, this issue seems to be resolved. Therefore I am closing this issue

danielsaidi commented 2 months ago

Perfect, thank you for letting me know!