-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
ld: 1319 duplicate symbols for architecture x86_64 after upgrading to 0.60 from 0.59.9 #25484
Comments
I actually removed all of these contents inside Link Binary With Libraries and the build was successful. But I don't understand what's going on in here. |
I think RN shifted to Pods , all native ios stuff is now handled by pods , Therefore you don't need those Linked Libraries. I updated from 0.57.8 to 0.60.0 following RN Update Helper and my build still failing :( |
Closing this because I think removing these contents from Link Binary With Binaries is a required move. |
Just remove everything from Build Phases/ Link Binary With Libraries , and it must work! 🤙🤘 |
Just a little hint if you use PushNotifications you have to extend the Podfile on your own! |
@Psiiirus Can you enlight us with this? Because I'm having the same issue with PushNotification as well after upgrade to |
i created a pull request to change the docs , i hope this can help you for now? |
@Psiiirus Below is the error details: In file included from /../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.m:8: /../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.h:8:9: fatal error: 'React/RCTEventEmitter.h' file not found #import <React/RCTEventEmitter.h> @martindavid |
Not 100% whats your problem is, sorry....but one lession i learned...drop the whole node_modules folder and do a clean build :) |
rm -rf Podfile.lock Remove if something left in Link Binaries. |
…?from=0.59.3&to=0.60.0 package updates Unlink everything add pods This was causing a problem so is gone. This was causing a problem so I removed it. Install pods fix typo upgrades? More upgrades yarn lock unlink pods fix config weirdness facebook/react-native#25484 zo0r/react-native-push-notification#1147 zo0r/react-native-push-notification#1147 note on cache cleaning remove crossword bunder from main shell gradle.properties change needed in https://react-native-community.github.io/upgrade-helper/?from=0.59.3&to=0.60.4 not sure about keystor fix build.gradle to .60 achetype fix build.gradle force use of correct rn types
THANK YOU @ roshangm1 !! This worked like a charm, took me forever to find this thread though. Had the same issue on react-native 0.60.5 |
Hi @Kida007 , how did you update to react-native 0.60 ? I have a few issues when I making that update |
Using update helper . |
To make this work, I had to entirely remove content from Library folder, not just unlink dependencies. |
If you are using a Podfile you can also remove React-RCTPushNotification and add the following...
|
I upgraded the react native version to 0.60 from 0.59.9. I wasn't using any Pods when on 0.59.9. But after 0.60, I added Podfile with following content (as per rn-diff)
I did
pod install
which installed 4 extra pods (maybe as a part of auto linking):After that, I opened Xcode and started building the app and I got this issue with duplicate symbols. A lot of pods/libraries are being installed (duplicate). For example:
I think this is a problem
Both
jsi
andReact-jsi
are being installed while building the project.React Native version:
Steps To Reproduce
Describe what you expected to happen:
I expect it to not install duplicate pods/libraries and successful build.
The text was updated successfully, but these errors were encountered: