Swift can't start AVCaptureSession -
i want set camera in app , here code
let capturesession = avcapturesession() guard let capturedevcie = avcapturedevice.default(for: .video) else { return } guard let input = try? avcapturedeviceinput(device: capturedevcie) else { return } capturesession.addinput(input) capturesession.startrunning() in infoplist have set privacy - camera usage description,but when start app doesn't ask permission.it prints long error in console , that's all
2017-08-21 12:47:43.686794+0400 object detection ml[26844:15000001] [] capturesourcesimulator_copyproperty signalled err=-12784 (kcmbaseobjecterror_propertynotfound) (unknown property) @ /buildroot/library/caches/com.apple.xbs/sources/embeddedcoremedia_sim/embeddedcoremedia-2027.1.4/celeste/sources/capture/capturesource/figcapturesourcesimulator.m:266 2017-08-21 12:47:43.687091+0400 object detection ml[26844:15000001] [] <<<< avcapturefigvideodevice >>>> -[avcapturefigvideodevice _copyfigcapturesourceproperty:]_block_invoke: (0x7f9b27c06cf0) copy(attributesdictionary) failed (-12784) 2017-08-21 12:47:43.687710+0400 object detection ml[26844:15000001] [] capturesourcesimulator_copyproperty signalled err=-12784 (kcmbaseobjecterror_propertynotfound) (unknown property) @ /buildroot/library/caches/com.apple.xbs/sources/embeddedcoremedia_sim/embeddedcoremedia-2027.1.4/celeste/sources/capture/capturesource/figcapturesourcesimulator.m:266 2017-08-21 12:47:43.688007+0400 object detection ml[26844:15000001] [] <<<< avcapturefigvideodevice >>>> -[avcapturefigvideodevice _copyfigcapturesourceproperty:]_block_invoke: (0x7f9b27c06cf0) copy(formats) failed (-12784) object detection ml project's name.what may problem here?
Comments
Post a Comment