Skip to content

'TOCropViewControllerTransitioning.h' file not found #602

Open
@marcoskoch

Description

Describe the bug

I have an existing iOS application in which I am configuring React Native (brownfield). The project already has several libraries in the Podfile configured with use_frameworks!.

After installing the "react-native-image-crop-picker": "^0.42.0" library, which depends on TOCropViewController, I encountered an error when trying to run the project:

'TOCropViewControllerTransitioning.h' file not found

After several attempts, I had to make some modifications to the TOCropViewController files inside the library folder within PODS.

I changed the imports from:

#import "TOCropViewControllerTransitioning.h"
#import "TOActivityCroppedImageProvider.h"
#import "UIImage+CropRotate.h"
#import "TOCroppedImageAttributes.h"

To:

#import <TOCropViewControllerTransitioning.h>
#import <TOActivityCroppedImageProvider.h>
#import <UIImage+CropRotate.h>
#import <TOCroppedImageAttributes.h>

To Reproduce
Steps to reproduce the behavior:

  1. Run project

Screenshots

Image

iOS Device:

  • Device: Simulator iPhone 16 Pro
  • OS: iOS 18.1
  • Library Version v2.7.4

Additional context
Add any other context about the problem here.

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions