Macのアプリを作成中ですが
WKWebViewを追加したら10.12では動くけど、10.11で起動した直後に「予期しない理由で終了しました」と出て動かなくなりました
XCodeは下記のようにおっしゃってますが、よく意味がわかりません
デプロイは10.10を指定しています
どこを直せばいいでしょう?どなたか同じような経験の方いらっしゃいませんでしょうか
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.>
Constraintを追加してみたらエラーは出なくなったんですが、相変わらず、10.11では立ち上がりません。WKWebViewが原因ではないのかも
間違いでした、エラーは残ったままです
Swift3
1 var webViewConstraints = [NSLayoutConstraint]() 2 webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .top, relatedBy: .equal, toItem: self.view, attribute: .top, multiplier: 1.0, constant: 0.0)) 3 webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .left, relatedBy: .equal, toItem: self.view, attribute: .left, multiplier: 1.0, constant: 0.0)) 4 webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .bottom, relatedBy: .equal, toItem: self.view, attribute: .bottom, multiplier: 1.0, constant: 0.0)) 5 webViewConstraints.append(NSLayoutConstraint(item: myweb, attribute: .right, relatedBy: .equal, toItem: self.view, attribute: .right, multiplier: 1.0, constant: 0.0)) 6
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/20 03:03
2017/04/20 03:53
2017/04/20 08:45
2017/04/20 08:58
2017/04/21 03:56
2017/04/21 04:00
2017/04/21 04:27