crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.61k stars 1.09k forks source link

RNSplashScreen.h not found #451

Open partha-blacknight opened 4 years ago

partha-blacknight commented 4 years ago

info React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 306.51 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.0 - /usr/local/bin/node npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3 Android SDK: API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29 Build Tools: 29.0.1 IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: ^0.59.2 => 0.59.10 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1What react-native-splash-screen version are you using?

IOS platform arise the issue

I gone through every solution info that shared here with respect of these issue but still I get the error. I follow auto linking and Manual linking process of react-native-splash-screen plugin but not get solution.

I do the following process:


In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]

Go to node_modules ➜ react-native-splash-screen and add SplashScreen.xcodeproj

In XCode, in the project navigator, select your project. Add libSplashScreen.a to your project's Build Phases ➜ Link Binary With Libraries

To fix 'RNSplashScreen.h' file not found, you have to select your project → Build Settings → Search Paths → Header Search Paths to add:

$(SRCROOT)/../node_modules/react-native-splash-screen/iosJoin a screenshot or video of the problem on the simulator or device?

Update AppDelegate.m file with #import "RNSplashScreen.h"/[RNSplashScreen show]; before return Yes;

In plugin ios directory RNSplashScreen.m file already has:

import "RNSplashScreen.h"

import <React/RCTBridge.h>

My AppDelegate.m file as follows:


/**

import "AppDelegate.h"

import <React/RCTBridge.h>

import <React/RCTBundleURLProvider.h>

import <React/RCTRootView.h>

import "RNSplashScreen.h"

@implementation AppDelegate

@end

sagarrs commented 4 years ago

same issue. Need help

makarkotlov commented 4 years ago

same here

ghost commented 4 years ago

Same here

jmahatpure01 commented 4 years ago

try cd ios && pod install

CongBaDo commented 4 years ago

It is happening now, anyone fixed it?

Ebeldev commented 4 years ago

I did what @jmahatpure01 said. It worked for me.

darmie commented 4 years ago

try cd ios && pod install

This didn't work for me

iduuck commented 4 years ago

You need to add the following one to the Podfile. The linking isn't properly working for me right now:

pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
AnthonyTailer commented 4 years ago

You need to add the following one to the Podfile. The linking isn't properly working for me right now:

pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'

On React Native 0.61.5 and Xcode 10.1 Manually adding this line on Podfile and then run pod install works for me. Also, I follow #467

ViktoriiaNazaruk commented 3 years ago

try cd ios && pod install

it's work for me