react-native-cookies
react-native-cookies copied to clipboard
Add RNCookieManagerIOS.h and RNCookieManagerIOS.m to your Xcode project
So I did the following:
- npm install react-native-cookies
- rnpm link react-native-cookies
Alls good here, no errors. Then I added the following line to my index file:
import CookieManager from 'react-native-cookies';
and restarted my simulator... that's where I get this error
"Add RNCookieManagerIOS.h and RNCookieManagerIOS.m to your Xcode project"
It works fine, when the simulator is started from Xcode.
+1
fix is issure, my problem is react-native-webview-bridge component has bug, make the build issure for this component, then uninstall bridge component is working.
+1
+1
Guys, I resolved this issue by doing the following steps mentioned react-native-linking-libraries,
- Open the xcode project, at <Project_Name>/ios/<Project_Name>.xcodeproject
- Go to Project settings -> Build Settings -> Search Paths -> Header Search Paths (highlighted as 4. in the image at the bottom of the document page mentioned above)
- Look for RNCookieManagerIOS and make it as
recursive
Thank you @himanshusoni !! 👍
@himanshusoni Unfortunately, your solution not working for me... Help me please!
@himanshusoni the solution isn't working for me either - I tried manually linking it and also linking it automatically by the instructions here with no luck on either fronts. (Also changed RNCookieManagerIOS to recursive)
I had the same problem. I think it may have be related to having XCode or the simulator open when you install the package.
I rolled back the updates and closed both the simulator and XCode, and then reinstalled and linked the package using "yarn add react-native-cookies" and "react-native link react-native-cookies", respectively, then restarted both XCode and the simulator up again, and it works now. Don't know if that will resolve the issue for everyone, but hopefully that helps somebody.
Oh, and if you do end up rolling back and reinstalling, make sure you reset and restart the packager, otherwise nothing will change.
I got the same red screen, the thing is, I'm building a RN project with expo,no XCode project or simulator was used.
@duhufu1987 Did you solve it? @thejacobseely did not fix my issue, too bad.
@natterstefan No, I've turned to use Asyncstorage for my project, which works.
@duhufu1987 okay, too bad. I need it to set&update cookies in a webview in the app. Do you maybe have a hint for me?
@natterstefan sorry, I've no idea
Still getting this error when running react-native run-ios but like @fernsheldon said, running from xcode works fine.
Same error for me also. When i tried to run from the command line "react-native run-ios" it does not working, but it working when trying with xcode.
@fernsheldon any solution?
Follow the steps
1. Remove the node_modules
2. npm install
3. Run react-native link
4. Install the app again
(also)
Check your project Xcode Libraries. If it not there in the Link binaries section add it manually and try to re-install the app.
Steps:
1. Click on the libraries in the Left of the Xcode ==> Add files to your project
2. Add the RNCookieManager.xcodeproj
3. Then go to general Tab of your target and add libRNCookieManagerIOS.a and libRNCookieManager.a
Then check whether it is present in build phases tab and re-run your app.
Hi I have faced same issue? What will be solution for this issue?
@pegasus1982 Did you tried this
https://github.com/joeferraro/react-native-cookies/issues/34#issuecomment-485350720
What are the solutions you have tried