SwiftにてOSXのアプリを作成しています。
※xcode 8.1,Swift 3.0.1
WindowController → TabViewController → SplitViewController(左右にViewControllerを実装)
上記の流れで画面を作成したところ、下記の制約が足りないと言うエラーがコンソールに発生しており、
解決が出来ておりません。
エラーの解消方法をご教示お願いします。
[Layout] Detected missing constraints for <_NSSplitViewItemViewWrapper: 0x6000001a0d20>. 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.
現在分かっている事
①WindowController → TabViewController → ViewController(仮で作った何も実装していない空の画面)の場合はエラーが発生しない。
②WindowController → SplitViewController(左右にViewControllerを実装した画面)の場合はエラーが発生しない。
③WindowController → TabViewController → SplitViewController(左右に実装したViewControllerを削除し空の画面)の場合はエラーが発生しない。
追記
下記イメージは、実際のプロジェクトではないですが、同じように構成したプロジェクトになります。
ユーティリティエリア/ライブラリペインから作成しました。
実行時にエラーがコンソールに出力されます。(アプリ自体は起動します。)
あなたの回答
tips
プレビュー