iOS standalone app is crashing on click of Facebook button. It is working perfectly in dev environment and in Android standalone app.
Expo diagnostics:
expo: ^42.0.0 => 42.0.1
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-web: ~0.13.12 => 0.13.18
react-navigation: ^4.4.3 => 4.4.4
Expo Workflow: bare
Expo Facebook version:
“expo-facebook”: “~11.3.1”
Error:
Presenting view controllers on detached view controllers is discouraged <RNSScreen: 0x7fd135c525d0>.
FBSDKLog: *** <activateApp, FBSDKAppEvents> is not called on the main thread. This can lead to errors.
FBSDKLog: *** <instanceRestore:, FBSDKTimeSpentData> is not called on the main thread. This can lead to errors.
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]’
*** First throw call stack:
(
0 CoreFoundation 0x000000011bb8ae6e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x000000011b0689b2 objc_exception_throw + 48
2 CoreFoundation 0x000000011bc1d9d1 _CFThrowFormattedException + 194
3 CoreFoundation 0x000000011bc28426 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 38
4 CoreFoundation 0x000000011bbe96e7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247
5 CoreFoundation 0x000000011bb86d71 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 xxxxxxxxx 0x000000010ebc5d39 __67-[EXFacebook logInWithReadPermissionsWithConfig:resolver:rejecter:]_block_invoke + 670
7 libdispatch.dylib 0x000000011d6b4951 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000011d6b58cb _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000011d6c1cdb _dispatch_main_queue_callback_4CF + 1042
10 CoreFoundation 0x000000011baee869 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
11 CoreFoundation 0x000000011bae93b9 __CFRunLoopRun + 2041
12 CoreFoundation 0x000000011bae88a4 CFRunLoopRunSpecific + 404
13 GraphicsServices 0x000000011e95fbbe GSEventRunModal + 139
14 UIKitCore 0x00000001270a4964 UIApplicationMain + 1605
15 xxxx 0x000000010ead7fd0 main + 80
16 libdyld.dylib 0x000000011d73a1fd start + 1
17 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
app.json file:
{
"expo": {
"name": "xxxx",
"icon": "./assets/icons/ios.png",
"version": "1.0.1",
"sdkVersion":"42.0.0",
"slug": "xxx",
"privacy": "public",
"facebookAppId": "xxx",
"facebookDisplayName": "xxx",
"facebookScheme": "xxx",
"facebookAdvertiserIDCollectionEnabled": true,
"facebookAutoLogAppEventsEnabled": true,
"facebookAutoInitEnabled": true,
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "xxx",
"googleServicesFile": "./GoogleService-Info.plist",
"buildNumber": "0.1.1",
"config": {
"googleSignIn": {
"reservedClientId": "com.googleusercontent.apps.651971123174-4o03smnbsq4gmp4qcgtalj7ik49g590g"
}
}
},
"android": {
"package": "xxx",
"versionCode": 2,
"permissions": [
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE"
],
"config": {
"googleSignIn": {
"apiKey": "xxx",
"certificateHash": "xxx"
}
},
"adaptiveIcon": {
"foregroundImage": "./assets/icons/android.png",
"backgroundColor": "#FFF"
}
}
}
}