react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

RCTDefines.h file not found

Open HuangQiii opened this issue 7 years ago • 7 comments

swift,react-native0.48.3 when i use

yarn add react-native-cookies
react-native link react-native-cookies

then i clean and run an error occur 555831342961582689 google and do something but none is ok like this 660368092585909511 60137736772375979 need help thx

HuangQiii avatar Nov 13 '17 08:11 HuangQiii

I have a same issue.

ccyfly avatar Dec 11 '17 10:12 ccyfly

@ccyfly swift with react-native? i solve it by dray .h and .m in the project and use them

HuangQiii avatar Dec 11 '17 12:12 HuangQiii

I've the same issue, i don't understand how you solved it

pierol avatar Dec 16 '17 00:12 pierol

@HuangQiii No, I am not using swift

ccyfly avatar Dec 18 '17 05:12 ccyfly

I solved the problem this way:

Open in Xcode the XCWORKSPACE project file under ios folder of your app. ad to bulid setting variable Header Search Paths the path: $(SRCROOT)/../../../ios/Pods/Headers/Public see this in expo docu:

If the library doesn’t support CocoaPods, react-native link may fail to include the library’s header files. If you encounter build issues locating the <React/*> headers, you may need to manually add Pods/Headers/Public to the Header Search Paths configuration for your native dependency in Xcode. If you’re not familiar with Xcode, search Xcode help for “configure build settings” to get an idea of how those work. Header Search Paths is one such build setting. The target you care to configure is the one created by react-native link inside your Xcode project. You’ll want to determine the relative path from your library to Pods/Headers/Public.

pierol avatar Jan 14 '18 11:01 pierol

If you are using Expo, you can also just add this line to your Podfile:

pod 'react-native-cookies', :path => '../node_modules/react-native-cookies/ios'

And then pod install. You'll also want to unlink the library first if you had linked it originally.

react-native unlink react-native-cookies

dodgecm avatar Jun 02 '18 01:06 dodgecm

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store We can create issues and PRs there to continue the development of the project.

safaiyeh avatar Jan 02 '20 19:01 safaiyeh