0

I recently changed my Macbook to a newer one (it's an M1 if that helps) and commuted my iOS app of mainly SwiftUI and Firebase, to GitHub, except for cocoapods, which I installed later in my computer to get the Firebase services.

The problem is that after running my app, the simulator crashes after 2 - 5 seconds, and prints the following error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBLPromise HTTPBody]: unrecognized selector sent to instance 0x6000021be3a0'

I would add more code to the post but I don't know what's causing it.

jnpdx
  • 45,847
  • 6
  • 64
  • 94
  • 1
    Is it https://stackoverflow.com/questions/70959972/fblpromise-httpbody-unrecognized-selector-sent-to-instance or https://stackoverflow.com/questions/71731600/fblpromise-httpbody-unrecognized-selector-sent-to-instance-0x600001afa700-er – Shadowrun Aug 25 '22 at 12:54
  • Some times I faced this issue. And, when I check Activity Monitor, there were two app instance on there. After closed all instance of my apps and run my project, issue was fixed. – Said Çankıran Aug 25 '22 at 14:25
  • Insert a symbolic breakpoint for `NSInvalidArgumentException`. For instructions: https://stackoverflow.com/a/14045618/9086770 – trndjc Aug 25 '22 at 17:51
  • Done. Breakpoint jumps in line 330 of ``GDTCCTUploadOperation`` in ``if (response.HTTPBody) {...}`` and says: ``Thread 7: "-[FBLPromise HTTPBody]: unrecognized selector sent to instance 0x600002e46d00"`` – MattleeCode Aug 25 '22 at 19:16
  • Did someone find the solution to this issue? @MattleeCode – Sahil Jan 30 '23 at 17:37

0 Answers0