質問編集履歴

1

Exception Breakpointを追加した際の内容とデバッグエリアの内容を追記しました

2017/08/02 02:49

投稿

naruhodo
naruhodo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -213,3 +213,103 @@
213
213
  Swift version 3.1
214
214
 
215
215
  Xcode 8.3.3
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ ###追記
224
+
225
+ >Exception Breakpointを追加して、止まっている箇所を調べてみて下さい。 >http://qiita.com/hidekuro/items/c851a9071441e666cb60
226
+
227
+
228
+
229
+ 試しにやってみたところ、
230
+
231
+ class AppDelegate: UIResponder, UIApplicationDelegate {
232
+
233
+ のところにThread1:breakpoint1.1と表示されました。
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ また実行した時のデバッグエリアの内容ですが
242
+
243
+ 2017-08-02 11:44:43.631 LocationTest[38593:7823380] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<LocationTest.ViewController 0x7fbb7560b2c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key hanteilabel.'
244
+
245
+ *** First throw call stack:
246
+
247
+ (
248
+
249
+ 0 CoreFoundation 0x000000010e97db0b __exceptionPreprocess + 171
250
+
251
+ 1 libobjc.A.dylib 0x000000010b4ef141 objc_exception_throw + 48
252
+
253
+ 2 CoreFoundation 0x000000010e97da59 -[NSException raise] + 9
254
+
255
+ 3 Foundation 0x000000010b00500b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
256
+
257
+ 4 UIKit 0x000000010bb5c994 -[UIViewController setValue:forKey:] + 87
258
+
259
+ 5 UIKit 0x000000010bdc9a09 -[UIRuntimeOutletConnection connect] + 109
260
+
261
+ 6 CoreFoundation 0x000000010e923e8d -[NSArray makeObjectsPerformSelector:] + 269
262
+
263
+ 7 UIKit 0x000000010bdc83bf -[UINib instantiateWithOwner:options:] + 1856
264
+
265
+ 8 UIKit 0x000000010bb62fc3 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
266
+
267
+ 9 UIKit 0x000000010bb638d9 -[UIViewController loadView] + 177
268
+
269
+ 10 UIKit 0x000000010bb63c0a -[UIViewController loadViewIfRequired] + 195
270
+
271
+ 11 UIKit 0x000000010bb6445a -[UIViewController view] + 27
272
+
273
+ 12 UIKit 0x000000010ba2c98a -[UIWindow addRootViewControllerViewIfPossible] + 65
274
+
275
+ 13 UIKit 0x000000010ba2d070 -[UIWindow _setHidden:forced:] + 294
276
+
277
+ 14 UIKit 0x000000010ba3febe -[UIWindow makeKeyAndVisible] + 42
278
+
279
+ 15 UIKit 0x000000010b9b937f -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4346
280
+
281
+ 16 UIKit 0x000000010b9bf5e4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1709
282
+
283
+ 17 UIKit 0x000000010b9bc7f3 -[UIApplication workspaceDidEndTransaction:] + 182
284
+
285
+ 18 FrontBoardServices 0x0000000112d7e5f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
286
+
287
+ 19 FrontBoardServices 0x0000000112d7e46d -[FBSSerialQueue _performNext] + 186
288
+
289
+ 20 FrontBoardServices 0x0000000112d7e7f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
290
+
291
+ 21 CoreFoundation 0x000000010e923c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
292
+
293
+ 22 CoreFoundation 0x000000010e9090cf __CFRunLoopDoSources0 + 527
294
+
295
+ 23 CoreFoundation 0x000000010e9085ff __CFRunLoopRun + 911
296
+
297
+ 24 CoreFoundation 0x000000010e908016 CFRunLoopRunSpecific + 406
298
+
299
+ 25 UIKit 0x000000010b9bb08f -[UIApplication _run] + 468
300
+
301
+ 26 UIKit 0x000000010b9c1134 UIApplicationMain + 159
302
+
303
+ 27 LocationTest 0x000000010ae71047 main + 55
304
+
305
+ 28 libdyld.dylib 0x000000010f34a65d start + 1
306
+
307
+ )
308
+
309
+ libc++abi.dylib: terminating with uncaught exception of type NSException
310
+
311
+ (lldb)
312
+
313
+
314
+
315
+ となってました。よろしくお願いします。