aStoryboard.instantiateViewControllerWithIdentifier(“myid”) returns nil but not nil in lldb
问题 This is by far the strangest thing thats happened to me. So I have the code below in a unit test... let aStoryboard = UIStoryboard(name: "myStoryboard", bundle: nil) let viewController = aStoryboard.instantiateViewControllerWithIdentifier("myViewController") as? CustomViewController The code above is executed and viewController is nil, okay that can happen (it shouldn't be because both identifiers exist and files are linked to test targets) but yeah okay. Here's the crazy part, when I add a