質問編集履歴

9

手順追加

2019/04/23 06:55

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -54,4 +54,24 @@
54
54
 
55
55
 
56
56
 
57
+ 具体的な手順は以下の通りになります。
58
+
59
+ 1、PJを作成する
60
+
61
+ 2、Viewcontroller.xibを作成する
62
+
63
+ 3、Viewcontroller.xibのFile’sOwnerを選択する
64
+
65
+ 4、viewとviewを結ぶ
66
+
67
+ 5、CustomClassのClassにViewControllerを指定する
68
+
69
+ 6、AppDelegateに「AppDelegateに以下のコードを追加しています」を追加する
70
+
71
+ 7、info.plistからMainストーリーボドを外す
72
+
73
+ 8、シュミレーター又は実機で実行する
74
+
75
+
76
+
57
77
  宜しくお願いいたします。

8

修正

2019/04/23 06:55

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- Xcode9までただ単純に部品を紐ずけしただけでエラーは出なかったと思いますが、何が原因でしょうか?
33
+ 以前は単純に部品を紐ずけしただけでエラーは出なかったと思いますが、何が原因でしょうか?
34
34
 
35
35
 
36
36
 

7

追記

2019/04/23 02:59

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -48,4 +48,10 @@
48
48
 
49
49
 
50
50
 
51
+ Mac OSは10.14.4を使用しています。
52
+
53
+ Xcodeは先ほど9、10.1、10.2 を試しましたが、全て同じ現象が発生しました。
54
+
55
+
56
+
51
57
  宜しくお願いいたします。

6

変更

2019/04/23 02:57

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- AppDelegateに以下のコードを追加しています。
19
+ **AppDelegateに以下のコードを追加しています。**
20
20
 
21
21
  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
22
22
 

5

変更

2019/04/23 02:38

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,18 @@
13
13
  ![イメージ説明](2bf0b198e5dda02ba92759dfdf1fa091.png)
14
14
 
15
15
  app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
16
+
17
+
18
+
19
+ AppDelegateに以下のコードを追加しています。
20
+
21
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
22
+
23
+ self.viewController = [[UIViewController alloc] initWithNibName:@"ViewController" bundle:nil];
24
+
25
+ self.window.rootViewController = self.viewController;
26
+
27
+ [self.window makeKeyAndVisible];
16
28
 
17
29
 
18
30
 

4

画像差し替え

2019/04/23 02:38

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- ![イメージ説明](4e6c3cb178b2cf6f9c34bc3e390b0d42.png)
13
+ ![イメージ説明](2bf0b198e5dda02ba92759dfdf1fa091.png)
14
14
 
15
15
  app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
16
16
 

3

画像差し替え

2019/04/23 02:36

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- ![イメージ説明](538bcb66012717418f2a461adb49ee45.png)
5
+ ![イメージ説明](acd154a87774eb5faa8c564c46e9e018.png)
6
6
 
7
7
 
8
8
 

2

追記

2019/04/23 02:34

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -30,4 +30,10 @@
30
30
 
31
31
 
32
32
 
33
+ 追記:Swiftで同じ動作を試した結果問題なくビルドできました。
34
+
35
+ Objective-Cの場合に発生するようです。
36
+
37
+
38
+
33
39
  宜しくお願いいたします。

1

画像を編集

2019/04/22 07:57

投稿

takeshi1907
takeshi1907

スコア54

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- ![イメージ説明](ee6ddbc725d98e3eff696db73a6f0cb0.png)
13
+ ![イメージ説明](4e6c3cb178b2cf6f9c34bc3e390b0d42.png)
14
14
 
15
15
  app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
16
16