parse.com - unrecognized selector sent to instance Error with Facebook SDK for Xcode 7 -


i using recent facebook sdk , parse sdk ios. when try run app on simulator following error:

parsestarterproject-swift[2841:107652] -[pfuserauthenticationcontroller authenticationdelegateforauthtype:]: unrecognized selector sent instance 0x7fd0bbc34620 2015-09-30 00:56:33.960 parsestarterproject-swift[2841:107652] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[pfuserauthenticationcontroller authenticationdelegateforauthtype:]: unrecognized selector sent instance 0x7fd0bbc34620' 

this error when call facebook application in appdelegate file.

 pffacebookutils.initializefacebookwithapplicationlaunchoptions(launchoptions) 

the following stack trace.

first throw call stack: (     0   corefoundation                      0x00000001102cef65 __exceptionpreprocess + 165     1   libobjc.a.dylib                     0x000000011280fdeb objc_exception_throw + 48     2   corefoundation                      0x00000001102d758d -[nsobject(nsobject) doesnotrecognizeselector:] + 205     3   corefoundation                      0x0000000110224f7a ___forwarding___ + 970     4   corefoundation                      0x0000000110224b28 _cf_forwarding_prep_0 + 120     5   parsestarterproject-swift           0x000000010f06fdf5 +[pffacebookutils _authenticationprovider] + 139     6   parsestarterproject-swift           0x000000010f06fe4c +[pffacebookutils initializefacebookwithapplicationlaunchoptions:] + 48     7   parsestarterproject-swift           0x000000010ef42f50 _tfc25parsestarterproject_swift11appdelegate11applicationfs0_ftcso13uiapplication29didfinishlaunchingwithoptionsgsqgvss10dictionarycso8nsobjectpss9anyobject____sb + 2160     8   parsestarterproject-swift           0x000000010ef43903 _ttofc25parsestarterproject_swift11appdelegate11applicationfs0_ftcso13uiapplication29didfinishlaunchingwithoptionsgsqgvss10dictionarycso8nsobjectpss9anyobject____sb + 179     9   uikit                               0x000000011138f4ca -[uiapplication _handledelegatecallbackswithoptions:issuspended:restorestate:] + 272     10  uikit                               0x0000000111390670 -[uiapplication _callinitializationdelegatesformainscene:transitioncontext:] + 3415     11  uikit                               0x0000000111396e15 -[uiapplication _runwithmainscene:transitioncontext:completion:] + 1755     12  uikit                               0x0000000111393ff0 -[uiapplication workspacedidendtransaction:] + 188     13  frontboardservices                  0x0000000113ef37ac -[fbsserialqueue _performnext] + 192     14  frontboardservices                  0x0000000113ef3b1a -[fbsserialqueue _performnextfromrunloopsource] + 45     15  corefoundation                      0x00000001101fb0a1 __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 17     16  corefoundation                      0x00000001101f0fcc __cfrunloopdosources0 + 556     17  corefoundation                      0x00000001101f0483 __cfrunlooprun + 867     18  corefoundation                      0x00000001101efe98 cfrunlooprunspecific + 488     19  uikit                               0x000000011139398d -[uiapplication _run] + 402     20  uikit                               0x0000000111398676 uiapplicationmain + 171     21  parsestarterproject-swift           0x000000010ef449dd main + 109     22  libdyld.dylib                       0x00000001133e492d start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)  

i managed fix error doing following:

first deployed official version of parse server (instead of rob's version). open link , click 'deploy heroku', follow steps. https://github.com/parseplatform/parse-server-example

after downloaded parse frameworks (including facebook framework) link below , replaced current frameworks in project these frameworks downloaded. https://parse.com/downloads/ios/parse-library/latest

other follow class steps (adding code appdelegate, info.pslist e etc.

any problems, let me know.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -