Open minhpd911992 opened 1 year ago
Same problem here!
@minhpd911992, have you found a solution for this?
@baronha, can you take a look at this? Pls!
I use this library in conjunction with another that uses TOCropViewController. This library uses CropViewController, which is a swift wrapper for the TOCropViewController, so it generates a second set of duplicated files.
I use this library in conjunction with another that uses TOCropViewController. This library uses CropViewController, which is a swift wrapper for the TOCropViewController, so it generates a second set of duplicated files.
Yah sir. This is the right solution for us. If you need to open the Crop View Controller directly, that's in my TODO list:
Assuming you use another library using TOCropViewController, you need to patch it to use CropViewController instead. In the other library podspec:
- s.dependency 'TOCropViewController'
+ s.dependency 'CropViewController'
And within the library code replace any instance of TOCropViewController import:
-#import <TOCropViewController/TOCropViewController.h>
+#import <CropViewController/CropViewController.h>
with that, both libraries use the same dependency and will not generate duplicate files.
Thank you so much @bizarrecoding! I will try your solution.
When i upgrade version 1.1.6 and run project ios. It has an error: 163 duplicate symbols for architecture x86_64 Linker command failed with exit code 1 (use -v to see invocation)
If i use version 0.4.9, it hasn't error My mac: Apple M1 Pro 16GB, Xcode 15, react native version 0.72.4
Please help me !