I know there are someone have ask this question.But it is a sorry i donot find the answer.
dispatchQueue = dispatch_queue_create(\"myQueue\", NULL); [capture
We have to add the output to session first, and then we can set the metadataObjectTypes.
metadataObjectTypes