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:
My AppDelegate.m file as follows:
/**
@implementation AppDelegate
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"newfok"
initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
[RNSplashScreen show];
return YES;
}
(NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
}
@end
same issue. Need help
same here
Same here
try cd ios && pod install
It is happening now, anyone fixed it?
I did what @jmahatpure01 said. It worked for me.
try
cd ios && pod install
This didn't work for me
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'
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.5and Xcode10.1
Manually adding this line on Podfile and then runpod installworks for me.
Also, I follow #467
Most helpful comment
try
cd ios && pod install