SDK: 41
Platform: iOS, Managed but standalone (deployed to TestFlight)
expo-facebook: 11.0.5
Problem : Facebook.logInWithReadPermissionsAsync
crashes my TestFlight build. The moment the function runs, my app immediately crashes and I am back on the home screen.
The same code works well in Expo Go. I have read others having similar issues in the past, and they could pass a parameter behavior = "web"
to logInWithReadPermissionsAsync
. But, the behavior
parameter seems to have been removed.
What’s causing this? Would love to hear from anyone that has experienced this, or something similar, before.
signInWithFacebook.js
export async function signInWithFacebook() {
await Facebook.initializeAsync({
appId: process.env.FACBEOOK_APP_ID,
appName: process.env.FACEBOOK_DISPLAY_NAME,
});
const { type, token } = await Facebook.logInWithReadPermissionsAsync();
// ☝️ This is where it crashes
// ...
app.config.js
import "dotenv/config";
export default {
facebookScheme: process.env.FACEBOOK_SCHEME,
facebookAppId: process.env.FACBEOOK_APP_ID,
facebookDisplayName: process.env.FACEBOOK_DISPLAY_NAME,
// ...
Happening for me too… on a bare workflow
opened 02:27AM - 15 Jul 20 UTC
closed 04:41AM - 15 Jul 20 UTC
🐛 Bug Report
Summary of Issue
facebook login crashed in testflight.
It worked well in emulator and Android, but not working while test...
needs more info
same as mentioned in the above - Tried versions 9/10/11 - starting to think its something to do with my xcode setup.
2021-04-25 17:37:37.159470+0100 GoalsMobile[9082:169061] *** 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 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2049e77f _CFThrowFormattedException + 194
3 CoreFoundation 0x00007fff204a9ec4 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0
4 CoreFoundation 0x00007fff2048ccb7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 235
5 CoreFoundation 0x00007fff20420773 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 GoalsMobile 0x000000010bc64593 -[UIViewController(CreateExtension) initWithView:] + 3251
7 libdispatch.dylib 0x000000010ea9c7ec _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000010ea9d9c8 _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000010eaabe75 _dispatch_main_queue_callback_4CF + 1152
10 CoreFoundation 0x00007fff2038fdbb CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
11 CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685
12 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567
13 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139
14 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912
15 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101
16 GoalsMobile 0x000000010b09d8a0 main + 112
17 libdyld.dylib 0x00007fff2025a3e9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]’
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 11 Pro (A8A00864-AEB8-40A9-BF09-0DBA25A922DD) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 11 Pro
Hey all, could one of you create a github issue for this and provide as much information as possible?
Cheers,
Adam
@parachute has provided a GitHub issue, above. Will that suffice?
system
closed
May 28, 2021, 2:25am
#5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.