I have a UIViewcontroller
with a container view inside. In the storyboard
, the container view is connected with the UIViewcontroller
through an Embed Segue. I do not need to pass data from the ParentView Controller
to the Child View Controller. The ChildViewController
has a CustomViewController
class, but since I don't need to pass any data between the 2 view controllers, the only reference between them is the embed segue in the Storyboard
.
Every time I open the parent view controller, the app crashes, with the following error:
*** Terminating app due to uncaught exception 'NSInternalIncosistencyException', reason: 'NSDictionaryOfVariableBindings failed bacause either one of the values is nil, or there's something wrong with the way the macro is being invoked. Cannot assign value nil for key "childView". Keys:( childView )'
Any idea what is causing this error and how to fix this? I'm working with Xcode 8.1 and Swift 3