paypal objective c library - objective-c

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>

Related

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

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.

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.

UNNotificationCenter issue crash the app

When I run my App on ios10 or later, the app works fine but the problem is that when I run the app on ios9 it crashes. I put deployment target 9.0 or later ,I could not find why it is not working on ios 9 and the warning shows like this :
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '+[NSString
localizedUserNotificationStringForKey:arguments:]: unrecognized
selector sent to class 0x10d042b00'
The problem is with method: localizedUserNotificationStringForKey:arguments.
Please note that this method is only available from iOS 10+.
This method you are using comes in UserNotifications framework. This framework introduced in iOS 10. That's why it's not supporting iOS9 devices.
Please refer this document : Apple Doc on UserNotifications Framework
The method you are using localizedUserNotificationstringForKey is available for iOS 10 or later , it’s not for ios9

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.