TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

TOCropViewController 3.0.0 error on build with XCode

Open dani1993 opened this issue 2 months ago • 1 comments

Describe the bug I have a problem building my app with the latest version of your library.

Here are the errors shown by Xcode:

TOCropViewController ../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m ../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:62:9 Use of undeclared identifier 'UIGlassEffect'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:62:24 Use of undeclared identifier 'glassEffect'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:62:39 Use of undeclared identifier 'UIGlassEffect'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:63:9 Use of undeclared identifier 'glassEffect'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:64:65 Use of undeclared identifier 'glassEffect'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:65:20 Property 'cornerConfiguration' not found on object of type 'UIVisualEffectView *'; did you mean 'pasteConfiguration'?

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:65:43 Unknown receiver 'UICornerConfiguration'; did you mean 'UISceneConfiguration'?

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:65:65 No known class method for selector 'capsuleConfiguration'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:107:71 No known class method for selector 'prominentGlassButtonConfiguration'

../ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.m:136:66 No known class method for selector 'clearGlassButtonConfiguration'

To Reproduce Steps to reproduce the behavior: Run an application with TOCropViewController version 3.0.0 and XCode 16.2

Do I need to do anything specific to make the app run, or is there an error in the library?

Thank you

dani1993 avatar Oct 16 '25 10:10 dani1993

Hi @dani1993!

Thanks for letting me know! I was curious if needing to continue supporting Xcode 16 would be necessary.

I pushed a new version yesterday that gates out the Liquid Glass code on non-Xcode 26 builds, so hopefully this is fixed now. Please test it and let me know how you go! Thanks!

TimOliver avatar Oct 19 '25 04:10 TimOliver