Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 163 duplicate symbols for architecture x86_64 on IOS #129

Open
minhpd911992 opened this issue Oct 26, 2023 · 7 comments
Open

Error 163 duplicate symbols for architecture x86_64 on IOS #129

minhpd911992 opened this issue Oct 26, 2023 · 7 comments

Comments

@minhpd911992
Copy link

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 !

@marcos-vinicius-mafei
Copy link

Same problem here!

@marcos-vinicius-mafei
Copy link

@minhpd911992, have you found a solution for this?

@marcos-vinicius-mafei
Copy link

@baronha, can you take a look at this? Pls!

@bizarrecoding
Copy link

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.

@baronha
Copy link
Owner

baronha commented Nov 3, 2023

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:

Screenshot 2023-11-03 at 13 14 45

@bizarrecoding
Copy link

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.

@marcos-vinicius-mafei
Copy link

Thank you so much @bizarrecoding!
I will try your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants