回答編集履歴

3

追記

2016/12/06 09:09

投稿

fromageblanc
fromageblanc

スコア2724

test CHANGED
@@ -213,3 +213,19 @@
213
213
  ```
214
214
 
215
215
  エラー内容からすると実機でやれば動くような気がします
216
+
217
+
218
+
219
+ ##追記
220
+
221
+ デリゲートメソッドを以下のように修正してください
222
+
223
+ ```swift
224
+
225
+ func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!,
226
+
227
+ from connection: AVCaptureConnection!) {
228
+
229
+
230
+
231
+ ```

2

修正

2016/12/06 09:09

投稿

fromageblanc
fromageblanc

スコア2724

test CHANGED
File without changes

1

修正

2016/12/05 15:52

投稿

fromageblanc
fromageblanc

スコア2724

test CHANGED
@@ -204,6 +204,8 @@
204
204
 
205
205
  ```
206
206
 
207
+ // コケる行 -> session.addOutput(output)//プレビューアウトプットセット
208
+
207
209
  Error Domain=AVFoundationErrorDomain Code=-11814 "Cannot Record" UserInfo={NSLocalizedDescription=Cannot Record, NSLocalizedRecoverySuggestion=Try recording again.}
208
210
 
209
211