In file included from /Users/hejunbin/workspace-js/ReactNative/openproject/GitHubPopular-master/node_modules/react-native-splash-screen/ios/SplashScreen.m:10:
/Users/hejunbin/workspace-js/ReactNative/openproject/GitHubPopular-master/node_modules/react-native-splash-screen/ios/SplashScreen.h:9:9: fatal error:
'React/RCTBridgeModule.h' file not found
^
1 error generated.
* BUILD FAILED *
The following build commands failed:
CompileC /Users/hejunbin/workspace-js/ReactNative/openproject/GitHubPopular-master/ios/build/Build/Intermediates/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.o SplashScreen.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/GitHubPopular.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
run react-native upgrade
I meet this problem too, I delete /projectDir/ios/build/ , run ok
I'm also having this same problem. I've tried running react-native upgrade, cleaning and rebuilding, and the suggestions in #21 and #48, none of which resolve the problem.
This is a detached Expo app, using Xcode 9.0.
In file included from .../node_modules/react-native-splash-screen/ios/SplashScreen.m:10:
.../node_modules/react-native-splash-screen/ios/SplashScreen.h:9:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import <React/RCTBridgeModule.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
the same problem , when build is success ,but when I archive my app, build failed, and the problem appear. It`s so confused.
Pls try to remove row pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
from the file ios/Podfile and do pod install again.
If you got error like require react-native but there are several files providing try yarn start --reset-cache when you boot react-native server. I guess the library duplicated between cocoa pods and npm thats why.
If your project uses Pod files at all, running react-native link behaves differently. It just adds it to the Podfile and expects you to run 'pod install' in that directory.
You can see in your xcode project that there isn't a Libraries folder and just a Pods project in the left pane. I was trying to follow the manual instructions for linking since I thought the link command didn't work. Just remove react-native-splash-screen, then re-add and use the link command. Then go to the directory with the Podfile in it and pod install. Then go to xcode and clean and run.
Ios needs to use pods and can not use link (it looks like the new version of RN is like this)
After installing the plugin, ios directly performs the following operations, do not operate the official steps.
Cd ios/,
Run pod install to download the library
Then building setting -> header search paths -> add
"${PODS_ROOT}/Headers/Public/react-native-splash-screen" Remember that the quotes are in English
Add code to AppDelegate.m (Remember the officially recommended SplashScreen.h changed to RNSplashScreen.h !!)
...
[self.window makeKeyAndVisible];
[RNSplashScreen show]; // Enter the startup page after startup
Return YES;
Most helpful comment
I'm also having this same problem. I've tried running
react-native upgrade, cleaning and rebuilding, and the suggestions in #21 and #48, none of which resolve the problem.This is a detached Expo app, using Xcode 9.0.