1

fatal error: unexpectedly found nil while unwrapping an Optional value

I cannot see the crashing line because of the last "message from debugger":

Message from debugger: The LLDB RPC server has crashed. Please file a bug with Apple with the crash log.

It just crashes and I can't debug my app. I've tried putting some "debug prints" in the code but it is just impossible to find the bug.

BTW, I use the same code as I used before Swift 3, and this nil error wasn't there.

If it helps, I use FBSDK and Alamofire.

rickster
  • 124,678
  • 26
  • 272
  • 326
Etgar
  • 5,774
  • 2
  • 16
  • 30
  • As the error states, there was some issue in the debugger. You need to file a bug to apple. Remember Xcode 8 is still under beta and can have several issues. So don't trust it 100% for the time being. :) – Midhun MP Jun 18 '16 at 15:03
  • I wish I could use Xcode 7, but the simulator doesn't work on macOS Sierra... Thanks! – Etgar Jun 18 '16 at 15:14

1 Answers1

0

I encountered this error, and it was resolved after I followed the steps in the link below:

Xcode 8 Beta (null) was unable to service the request

(I was trying to solve a separate issue related to the simulator)

I'm not sure if the two issues are related, but it might help you.

Community
  • 1
  • 1
Michael Lee
  • 303
  • 3
  • 8