前提
カスタムキーボードを作っていたらAutoLayoutをしたくなり、その対応をコードで書いてみたら、親Viewからサイズがおかしな事になってしまって悩んだのでそのログ。
エラーログ
こんなエラーログ。
Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand,
refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
対処方法
エラーログに答えが書いてあるので、ググって対応。以下のコードを追加した。
nextKeyboardButton.setTranslatesAutoresizingMaskIntoConstraints(false)