❌ fatal error: unexpectedly found nil while unwrapping an Optional value

Hi

I am seeing circleCI tests issue. All the classes and tests file compile and it is failing right before unit tests kickoff. I am seeing below error.

2016-12-01 16:25:39.292 xcodebuild[2072:7576] Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

Testing failed:
Test target WinesTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **

The following commands produced analyzer issues:
AnalyzeShallow CBISales/CBIExecutionStandardsViewController.m
AnalyzeShallow CBISales/CBIAssetsViewController.m
(2 commands with analyzer issues)

:x: fatal error: unexpectedly found nil while unwrapping an Optional value

Can someone please help me with it ?

Thanks
Hiral

Hi Hiral,

Based on looking at your output, the key part of the failing test is the fatal error: unexpectedly found nil while unwrapping an Optional value. Somewhere in your tests it looks to be expecting a value but nil was returned. I would recommend running the tests in Xcode to see if they succeed there and it may give you a better sense of where this error is occurring.

Hope this information was helpful and good luck!

Hi Jack

All tests are passing in local machine.