1
votes

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.

1
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
I wish I could use Xcode 7, but the simulator doesn't work on macOS Sierra... Thanks!Etgar

1 Answers

0
votes

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.