White screen due to the error: Terminating app due to uncaught exception 'NSInternalInconsistencyException' - react-native

A react-native app I inherited throws this error Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'rootViewController is not of type HomeIndicatorView as expected.'
The app on load shows the splash screen and gets stuck on the screen below. At the moment, I don't know where to look as most of the solutions online doesn't lead anywhere.
PS. I'm using MacBook M1 pro, incase this is an issue with M1's.

Related

React native app crashing at Splash Screen

'NSInternalInconsistencyException', reason: 'The embedded manifest is invalid or could not be read. Make sure you have configured expo-updates correctly in your Xcode Build Phases.'

Error while running Expo-ReactNative app in Iphone Simulator

I have an expo-React native project. The Project is getting build correctly and i am able to generate .apk and .ipa files for it.
But when I try to run the app in the iPhone simulator. I am getting the below error:-
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSBundle must contain the expected assets'
I was also having this issue and turned out to be my own fault due to changes I'd made in AppDelegate.m.
These caused [self initializeReactNativeApp]; to not be called when building for DEBUG.
Make sure initializeReactNativeApp is being called correctly in application:(UIApplication *)application didFinishLaunchingWithOptions in your app delegate.

App Release Crashes t is not a function

the debug mode working just fine and smooth. no any errors.
i spent more than 3 days but could not find a solution. please help and thanks in advance.
when it's about releasing the app from xcode the app crashes
package.json file
error in xcode console
Unhandled JS Exception: t is not a function.
*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: t is not a function.
there was a typo error in my store.js
it was such a nightmare to figure out what causing such crash.

App crashes when using Salesforce React Native SDK and Xcode 8

I was trying to compile a sample app with Salesforce React Native SDK 4.3 and Xcode 8. The app would build successfully, but when loading on the simulator, it would crash at the splash screen and at the following line of code:
int retVal = UIApplicationMain(argc, argv, #"SFApplication", #"AppDelegate");
I got the following errors in the output:
ibc++abi.dylib: terminating with uncaught exception of type NSException
and further up
Terminating app due to uncaught exception 'com.salesforce.security.keychainException', reason: 'writeToKeychain: Error adding keychain item: Unknown status code (-34018).'
It seems that enabling Keychain Sharing under "Capabilities" will fix the problem. I believe this issue should be fixed with SDK 5.

paypal objective c library

I use Mobile Payment Libraries for iOS PayPal intergration and when I lunch the demo example run on iOS 4.3 simulator only but when lunch on iOS 5 simulator I got this error.
SimpleDemo[3594:ef03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString rangeOfString:options:range:locale:]: nil argument' </i>