-
Notifications
You must be signed in to change notification settings - Fork 112
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
iOS Build is failing (duplicate symbols for architecture x86_64) #114
Comments
Credit to @Jiope Go to xcode this is correct solution. |
Hi there, I just tried to install this package and I do have the same issue. Here is part of the error logs : It seems to have some kind if conflict with the react-native-thermal-receipt-printer module. When I check on the Pods targe / react-native-tcp-sockets / compile sources , there is nothing like CocoaAsyncSocket, but I can found it in the dependency. Do you have any clues on how o fix it ? Regards |
@Florent75 There is a troubleshoot section in the docs about removing Flipper. If you are still having that issue after commenting out all the flipper reference in your Podfile and AppDelegate.m, then you mostly likely still have Flipper in your Pods folder. Run pod deintegrate and pod install. |
It works for me, amazing🤩 |
Any way of doing this promatically from podfile or a patch-package so that we don't have to manually remove CocoaAsyncSocket after each pod install? |
Facing the same issue |
This issue should serve as a starting point for others who have the same problem. I hope I can save you from a lot of headache. Original Issue: Rapsssito/react-native-tcp-socket#61 (comment)
Steps to reproduce
The issue appears if you try to compile a react native project for iOS, which uses rn-nodefiy. To be more specific the cause of the problem seems to come from react-native-tcp and react-native-udp.
It seems that it also does not matter if you use a new M1 Mac or an older Intel based Mac. Also it does not matter if you use npm or yarn
npx react-native init AwesomeTSProject --template react-native-template-typescript
At this point your iOS version should still build correctly.
install rn-nodeify.
npx rn-nodeify --install --hack
install pods
cd ios & pod install
Try to build the project for iOS again
npm run ios
Your build will fail with the message
ld: {number} duplicate symbols for architecture x86_64
How to solve it
Credit to @Jiope
in this case you also need to do the same for react-native-udp
It seems like you need to redo this procedure every time you add new dependencies to your project
The text was updated successfully, but these errors were encountered: