swift - Facebook Log In - Sigabrt Error in App Delegate and App Crashes -
i trying create simple facebook login swift , parse. ios9. twitter login works fine facebook login keeps crashing , no idea why? crash leads appdelegate.swift saying there sigabrt error "signal sigabbt"
@uiapplicationmain class appdelegate: uiresponder, uiapplicationdelegate { var window: uiwindow? func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { parse.setapplicationid("my id", clientkey:"<my client key") pftwitterutils.initializewithconsumerkey("consumer key", consumersecret:"consumer secret") pffacebookutils.initializefacebookwithapplicationlaunchoptions(launchoptions); return true } func application(application: uiapplication, openurl url: nsurl, sourceapplication: string?, annotation: anyobject) -> bool { return fbsdkapplicationdelegate.sharedinstance().application(application, openurl: url, sourceapplication: sourceapplication, annotation: annotation) } func applicationdidbecomeactive(application: uiapplication) { fbsdkappevents.activateapp() } }
2015-09-30 18:35:46.237 unilad[10789:3335461] * terminating app due uncaught exception 'invalidoperationexception', reason: 'app id not found. add string value app id key facebookappid info.plist or call [fbsdksettings setappid:].' * first throw call stack: ( 0 corefoundation 0x0000000105595f65 exceptionpreprocess + 165 1 libobjc.a.dylib 0x0000000105921deb objc_exception_throw + 48 2 unilad 0x00000001025619e7 +[fbsdkinternalutility validateappid] + 183 3 unilad 0x0000000102561a10 +[fbsdkinternalutility validateurlschemes] + 32 4 unilad 0x000000010258a3ae -[fbsdkloginmanager loginparameterswithpermissions:] + 78 5 unilad 0x000000010258abc8 -[fbsdkloginmanager loginwithbehavior:] + 88 6 unilad 0x000000010258ab44 -[fbsdkloginmanager loginwithpermissions:handler:] + 292 7 unilad 0x0000000102588e57 -[fbsdkloginmanager loginwithreadpermissions:fromviewcontroller:handler:] + 343 8 unilad 0x0000000102588cc7 -[fbsdkloginmanager loginwithreadpermissions:handler:] + 103 9 unilad 0x00000001026acc90 -[pffacebookauthenticationprovider authenticateasync] + 476 10 unilad 0x00000001026abb60 +[pffacebookutils _loginasyncwithreadpermissions:publishpermissions:] + 144 11 unilad 0x00000001026ab9b5 +[pffacebookutils logininbackgroundwithreadpermissions:block:] + 71 12 unilad 0x00000001026c392e -[pfloginviewcontroller _loginwithfacebook] + 878 13 uikit 0x0000000103e451fa -[uiapplication sendaction:to:from:forevent:] + 92 14 uikit 0x0000000103fa9504 -[uicontrol sendaction:to:forevent:] + 67 15 uikit 0x0000000103fa97d0 -[uicontrol _sendactionsforevents:withevent:] + 311 16 uikit 0x0000000103fa8906 -[uicontrol touchesended:withevent:] + 601 17 uikit 0x00000001042f5ca5 _uigesturerecognizerupdate + 10289 18 uikit 0x0000000103eaf592 -[uiwindow _sendgesturesforevent:] + 1137 19 uikit 0x0000000103eb0681 -[uiwindow sendevent:] + 849 20 uikit 0x0000000103e62752 -[uiapplication sendevent:] + 263 21 uikit 0x0000000103e3dfcc _uiapplicationhandleeventqueue + 6693 22 corefoundation 0x00000001054c20a1 __cfrunloop_is_calling_out_to_a_source0_perform_function + 17 23 corefoundation 0x00000001054b7fcc __cfrunloopdosources0 + 556 24 corefoundation 0x00000001054b7483 __cfrunlooprun + 867 25 corefoundation 0x00000001054b6e98 cfrunlooprunspecific + 488 26 graphicsservices 0x0000000107077ad2 gseventrunmodal + 161 27 uikit 0x0000000103e43676 uiapplicationmain + 171 28 unilad 0x000000010250e2bd main + 109 29 libdyld.dylib 0x000000010644392d start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)
it happened me 3 days ago. updated parse , facebook sdk , problem solved. try update sdks.
happy coding.
Comments
Post a Comment