remobile / react-native-toast

A android like toast for android and ios, android use native toast, ios use UIView+Toast
MIT License
345 stars 143 forks source link

ios compile failure - RCTLog.h file not found #3

Closed bartonhammond closed 8 years ago

bartonhammond commented 8 years ago
screen shot 2015-11-27 at 5 39 37 pm
mondaychen commented 8 years ago

Same thing happens to me.

chenchen1008 commented 8 years ago

I got the same error!

lifuzu commented 8 years ago

Select "RCTToast.xcodeproj", Project "RCTToast", Build Settings, then find "Search Paths", "Header Search Paths", change this line:

$(SRCROOT)/../../../react-native/React

to:

$(SRCROOT)/../../react-native/React
fov42550564 commented 8 years ago

use npm install @remobile/react-native-toast --save please

coto commented 7 years ago

Just Link the library with the React Link http://facebook.github.io/react-native/docs/linking-libraries-ios.html#automatic-linking

FunkyGeorge commented 6 years ago

I got this error too at first, then I read @fov42550564 comment. For me this was a result of not following instructions. I did npm install react-native-toast and it worked on android but not ios. I uninstalled my previous version and did 'npm install @remobile/react-native-toast --save' and followed the rest of the instructions. Then I had a small issue with my code not finding react-native-toast anywhere but its easily fixed by copying the folder inside the node_modules/@remobile folder into the root /node_modules folder

DavitVosk commented 6 years ago

Delete the node_modules folder and then install the packages back. For your easy reference, just run "rm -rf node_modules" and then "npm i". This worked for me as a charm.

Web3TomCat commented 6 years ago

as @lifuzu sayed, then rm -rf ./build file,and react-native run-ios,it works!