Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RNSplashScreen", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error:
linker command failed with exit code 1 (use -v to see invocation)
@zuijiaoluo 怎么解决的
@zuijiaoluo and @Tiger-man you need to follow the manual link steps from the readme. After this, everything works fine :)
I followed this step: select your project → Build Settings → Search Paths → Header Search Paths to add:
$(SRCROOT)/../node_modules/react-native-splash-screen/ios

but still getting the error:

I tried first installing the latest react-native-splash-screen version and then pod install, and then also tried downgraded the library to the 3.0.6 version and run pod install again.
Can anyone help me with this, please?
SplashScreen was renamed to RNSplashScreen. There are so many different versions running around that I have to change AppDelegate.m weekly.
same problem
info Undefined symbols for architecture x86_64:
info "_OBJC_CLASS_$_RNSplashScreen", referenced from:
objc-class-ref in AppDelegate.o
info ld: symbol(s) not found for architecture x86_64
info clang: error: linker command failed with exit code 1 (use -v to see invocation)
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening appcostaverde.xcworkspace
* BUILD FAILED *
The following build commands failed:
Ld /Users/softdepot/Documents/appcostaverde/ios/build/appcostaverde/Build/Products/Debug-iphonesimulator/appcostaverde.app/appcostaverde normal x86_64
(1 failure)
. Run CLI with --verbose flag for more details.
I followed this step: select your project → Build Settings → Search Paths → Header Search Paths to add:
$(SRCROOT)/../node_modules/react-native-splash-screen/ios
but still getting the error:
I tried first installing the latestreact-native-splash-screenversion and thenpod install, and then also tried downgraded the library to the3.0.6version and runpod installagain.
Can anyone help me with this, please?
I have done the same. Facing this issue after upgrading React Native to 0.60.4
In android it is auto linked, and works fine. Facing the same issue in iOS
i am also facing issue in iOS. I am using version 3.2.0 and react-native version 0.60.5
@devilabhi did you find any solution for this?
The same problem today :P
I followed this step: select your project → Build Settings → Search Paths → Header Search Paths to add:
$(SRCROOT)/../node_modules/react-native-splash-screen/ios
then in terminal
cd ios
pod install
cd ..
It does not work for me, I am working with the latest version of RN 0.60.5
Anyone have a solution here?
@CaptainJeff I managed to solve it by reverting to a previous version of React Native splash screen. From then on, we refuse to upgrade react-native-splash-screen. I also ran pod install, and it seemed to fix most of my issues.
@wongcoder
So weird!
So you reverted to an older version of splash screen but then were you able to update react native?
What version of React Native splash screen did you revert back to?
Yeah, our teams codebase was rather fractured. One of us was using an older version of React Native Splash Screen, and another section of us was using a more modern version. We just jumped to the old one since it didnt' seem to have a performance issue. ^3.0.6 is our current version.
I was able to update React Native to 0.60.2, however, I haven't finished testing it on iOS (just Android) and that seemed to work alright.
same problem.
I using version 3.2.1 and react-native version 0.61.1
after I downgrade version to 3.1.1 and reinstall node_modules, the problem solved !
rm -rf node_modules
npm install
cd ios && pod install
You need to add this to your pod file: pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
Most helpful comment
same problem.
I using version 3.2.1 and react-native version 0.61.1
after I downgrade version to
3.1.1and reinstall node_modules, the problem solved !rm -rf node_modules
npm install
cd ios && pod install