Closed roshangm1 closed 5 years ago
Link Binary and Libraries in Build Phases looks like this.
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. https://github.com/react-native-community/upgrade-helper/issues/47
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! ...took me a while to noticed this
@Psiiirus Can you enlight us with this? Because I'm having the same issue with PushNotification as well after upgrade to 0.60.0
@Psiiirus Can you enlight us with this? Because I'm having the same issue with PushNotification as well after upgrade to
0.60.0
i created a pull request to change the docs , i hope this can help you for now? https://deploy-preview-1087--react-native.netlify.com/docs/next/pushnotificationios
@Psiiirus Facing issue with PushNotificationIOS after upgrading to 0.60, can you let us know how RCTPushNotification is listed in pod file.
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
^~~~~~~~~
@martindavid Did u get the fix for the PushNotification?
@Psiiirus Facing issue with PushNotificationIOS after upgrading to 0.60, can you let us know how RCTPushNotification is listed in pod file.
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 Did u get the fix for the PushNotification?
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 pod deintegrate pod install
Remove if something left in Link Binaries.
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
I did this and the project builds; however, I'm now getting the following:
Any idea what I did wrong/how to fix?
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...
pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'
because React-RCTPushNotification is from 'react-native' but push notifications has been moved to @react-native-community.
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.