Skip to content

Version 2.7.4 is last working version for XCode using Package Dependencies #642

@amgallo272

Description

@amgallo272

I Have started a fresh XCode project and only tried to add package dependency for TOCropViewController and it will allow me to add package (I have also allowed embedded content for CropViewController & TOCropViewController) I then import CropViewController like I have done before with cocoapods but this time i am using package dependency (Cocoapods being phased out) and it then asks to import TOCropviewController in same VC as CropViewController ok thats fine i guess. But now I sample this code in VC cropController.aspectRatioPreset =.presetSquare (same as your example project) and get error (Type 'CGSize' has no member 'presetSquare') now if i manually change dependency Rule to V2.7.4 EVERY error goes away.

To Reproduce
Steps to reproduce the behavior:

  1. Start fresh project and Add CropViewControllerDependecy
  2. Click on viewController and add sample code from example project
  3. Scroll down to cropController.aspectRatioPreset = .presetSquare and uncomment this line it will not work.
  4. See error - Type 'CGSize' has no member 'presetSquare'

Expected behavior
I shouldn't have to manually downgrade dependency nearly 4 versions

Screenshots
See attached

iOS Device:

  • Device: [e.g. iPhone15 Pro]
  • OS: [e.g. iOS26.2.1]
  • Xcode Version : 26.2

Additional context
This repo has always worked with cocoapods no issues its only with dependency

Image

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions