AVCaptureMultiCamSession crashes on removing connections

I want to setup all the cameras available on the device, create connections between device inputs and AVCaptureVideoDataOutputs, but do not add them to the session immediately. On user input for camera selection, I want to add and remove the desired connections. However this does not seem to work, and often crashes when I remove connrection. What is the right way to dynamically add/remove cameras?


<AVCaptureMultiCamSession 0x2827a47e0> for the key path "enabled" from <AVCaptureConnection 0x2827ced60> because it is not registered as an observer.