teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー内容を追記、開発環境を追記

2015/04/09 02:01

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -16,6 +16,51 @@
16
16
 
17
17
  しかし、シミュレータを立ち上げようとするとクラッシュし、以下の様なエラーが出ます。どうすれば解決できるでしょうか?
18
18
 
19
+ 「this class is not key value coding-compliant for the key myButton」が問題だとは分かるのですが、対処法が分かりませんでした。
20
+
21
+
22
+ 【エラー箇所】AppDelegate.swift
19
23
  ```
20
- terminating with uncaught exception of type NSException
21
- ```
24
+ class AppDelegate: UIResponder, UIApplicationDelegate {
25
+ ```
26
+
27
+ 【ログ】
28
+ ```
29
+ 2015-04-09 10:33:50.495 ButtonTutorial[9866:505128] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ButtonTutorial.ViewController 0x7ff94143bfb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myButton.'
30
+ *** First throw call stack:
31
+ (
32
+ 0 CoreFoundation 0x00000001026bea75 __exceptionPreprocess + 165
33
+ 1 libobjc.A.dylib 0x0000000104216bb7 objc_exception_throw + 45
34
+ 2 CoreFoundation 0x00000001026be6b9 -[NSException raise] + 9
35
+ 3 Foundation 0x0000000102ad9d43 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
36
+ 4 CoreFoundation 0x00000001026085e0 -[NSArray makeObjectsPerformSelector:] + 224
37
+ 5 UIKit 0x00000001032184ed -[UINib instantiateWithOwner:options:] + 1506
38
+ 6 UIKit 0x0000000103076a88 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
39
+ 7 UIKit 0x0000000103077078 -[UIViewController loadView] + 109
40
+ 8 UIKit 0x00000001030772e9 -[UIViewController loadViewIfRequired] + 75
41
+ 9 UIKit 0x000000010307777e -[UIViewController view] + 27
42
+ 10 UIKit 0x0000000102f96509 -[UIWindow addRootViewControllerViewIfPossible] + 58
43
+ 11 UIKit 0x0000000102f968a1 -[UIWindow _setHidden:forced:] + 247
44
+ 12 UIKit 0x0000000102fa2f8c -[UIWindow makeKeyAndVisible] + 42
45
+ 13 UIKit 0x0000000102f4d0c2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
46
+ 14 UIKit 0x0000000102f4fe3e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
47
+ 15 UIKit 0x0000000102f4ed35 -[UIApplication workspaceDidEndTransaction:] + 179
48
+ 16 FrontBoardServices 0x0000000105dc8243 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
49
+ 17 CoreFoundation 0x00000001025f3c7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
50
+ 18 CoreFoundation 0x00000001025e99c5 __CFRunLoopDoBlocks + 341
51
+ 19 CoreFoundation 0x00000001025e9785 __CFRunLoopRun + 2389
52
+ 20 CoreFoundation 0x00000001025e8bc6 CFRunLoopRunSpecific + 470
53
+ 21 UIKit 0x0000000102f4e7a2 -[UIApplication _run] + 413
54
+ 22 UIKit 0x0000000102f51580 UIApplicationMain + 1282
55
+ 23 ButtonTutorial 0x00000001024dfede top_level_code + 78
56
+ 24 ButtonTutorial 0x00000001024dff1a main + 42
57
+ 25 libdyld.dylib 0x00000001049f2145 start + 1
58
+ )
59
+ libc++abi.dylib: terminating with uncaught exception of type NSException
60
+ (lldb)
61
+ ```
62
+ ###開発環境
63
+ - iOS:8.2
64
+ - Xcode:6.2
65
+ - 使用言語:swift
66
+ - ios Simulator:iphone6