guoyingtao / Mantis

An iOS Image cropping library, which mimics the Photo App written in Swift.
MIT License
907 stars 180 forks source link

Error Cannot inherit from non-open class 'CropViewController' outside of its defining module #385

Closed hoangnam714 closed 5 months ago

hoangnam714 commented 6 months ago

i am getting this error when inheriting CropViewController

image
guoyingtao commented 6 months ago

@hoangnam714 Which version are you using? Can you use the latest version in which you can see CropViewController is an open class

open class CropViewController: UIViewController
hoangnam714 commented 6 months ago

i am using CropViewController latest version, i using spm to install

guoyingtao commented 6 months ago

@hoangnam714 For some reason, SPM still shows 1.7.5

image

Can you use exact version 2.19.0 instead for now

image
guoyingtao commented 6 months ago

I tested with SPM exact version and it worked for me. Let me know if it solved your issue.

guoyingtao commented 5 months ago

@hoangnam714 I haven't heard feedback from you for a while so I just close this ticket for now. You can reopen it anytime if you still have the issue.

smalldevcloud commented 1 month ago

@hoangnam714 For some reason, SPM still shows 1.7.5 image

Can you use exact version 2.19.0 instead for now image

Thanks, that's the solution