質問編集履歴

5

エラーが出なくなったというのは間違いでした

2017/04/17 07:59

投稿

apple2
apple2

スコア37

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,11 @@
14
14
 
15
15
 
16
16
 
17
- Constraintを追加してみたらエラーは出なくなったんですが、相変わらず、10.11では立ち上がりません。WKWebViewが原因ではないのかも
17
+ __Constraintを追加してみたらエラーは出なくなったんですが__、相変わらず、10.11では立ち上がりません。WKWebViewが原因ではないのかも
18
+
19
+
20
+
21
+ 間違いでした、エラーは残ったままです
18
22
 
19
23
 
20
24
 

4

Constraintを追加してみました

2017/04/17 07:59

投稿

apple2
apple2

スコア37

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,25 @@
11
11
 
12
12
 
13
13
  2017-04-16 16:31:38.013555+0900 xxxxx[39075:8298257] [Layout] Detected missing constraints for <NSRemoteView: 0x608000122d00>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.>
14
+
15
+
16
+
17
+ Constraintを追加してみたらエラーは出なくなったんですが、相変わらず、10.11では立ち上がりません。WKWebViewが原因ではないのかも
18
+
19
+
20
+
21
+ ```Swift3
22
+
23
+ var webViewConstraints = [NSLayoutConstraint]()
24
+
25
+ webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .top, relatedBy: .equal, toItem: self.view, attribute: .top, multiplier: 1.0, constant: 0.0))
26
+
27
+ webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .left, relatedBy: .equal, toItem: self.view, attribute: .left, multiplier: 1.0, constant: 0.0))
28
+
29
+ webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .bottom, relatedBy: .equal, toItem: self.view, attribute: .bottom, multiplier: 1.0, constant: 0.0))
30
+
31
+ webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .right, relatedBy: .equal, toItem: self.view, attribute: .right, multiplier: 1.0, constant: 0.0))
32
+
33
+
34
+
35
+ ```

3

WKWebViewについて追加しました

2017/04/17 06:41

投稿

apple2
apple2

スコア37

test CHANGED
@@ -1 +1 @@
1
- OSX10.11で動かなくなりました
1
+ WKWebViewを追加したらOSX10.11で動かなくなりました
test CHANGED
@@ -1,6 +1,6 @@
1
1
  Macのアプリを作成中ですが
2
2
 
3
- 何かの拍子に10.12では動くけど、10.11で起動した直後に「予期しない理由で終了しました」と出て動かなくなりました
3
+ WKWebViewを追加したら10.12では動くけど、10.11で起動した直後に「予期しない理由で終了しました」と出て動かなくなりました
4
4
 
5
5
  XCodeは下記のようにおっしゃってますが、よく意味がわかりません
6
6
 

2

状況の説明を追加しました

2017/04/17 02:15

投稿

apple2
apple2

スコア37

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  Macのアプリを作成中ですが
2
2
 
3
- 何かの拍子に10.12では動くけど、10.11で動かなくなりました
3
+ 何かの拍子に10.12では動くけど、10.11でした直後に「予期しない理由で終了しました」と出て動かなくなりました
4
4
 
5
5
  XCodeは下記のようにおっしゃってますが、よく意味がわかりません
6
6
 

1

デプロイについて追加しました

2017/04/16 22:56

投稿

apple2
apple2

スコア37

test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  XCodeは下記のようにおっしゃってますが、よく意味がわかりません
6
6
 
7
+ デプロイは10.10を指定しています
8
+
7
9
  どこを直せばいいでしょう?どなたか同じような経験の方いらっしゃいませんでしょうか
8
10
 
9
11