Cleans up IOS code having to do with resources and video capture.