【Swift/Xcode】Storyboardのエラー/警告解消方法と原因まとめ!

この記事からわかること
- Swift/Storyboardで発生するエラーや警告の解決方法と原因
- Failed to render and update auto layout status for ViewController (XXX-XX-XXX): Failed to launch designables agent because tool was shutting down. Check the console for a more detailed description and please file a bug report at feedbackassistant.apple.com.
- Fixed width constraints may cause clipping.
- Fixed leading and trailing constraints with a center constraint may cause clipping.
- Trailing constraint is missing, which may cause overlapping with other views.
- 2 views are horizontally ambiguous.
- Frame for "Button" will be different at run time.
- Height and vertical position are ambiguous for "UI部品名".
- Position and size are ambiguous for "UI部品名".
- Plain Style unsupported in a Navigation Item
index
[open]
- Failed to render and update auto layout status for ViewController (XXX-XX-XXX): Failed to launch designables agent because tool was shutting down. Check the console for a more detailed description and please file a bug report at feedbackassistant.apple.com.
- Fixed width constraints may cause clipping.
- Fixed leading and trailing constraints with a center constraint may cause clipping.
- Trailing constraint is missing, which may cause overlapping with other views.
- 2 views are horizontally ambiguous.
- Frame for "UI部品名" will be different at run time.
- Height and vertical position are ambiguous for "UI部品名".
- Position and size are ambiguous for "UI部品名".
- Plain Style unsupported in a Navigation Item
\ アプリをリリースしました /
Failed to render and update auto layout status for ViewController (XXX-XX-XXX): Failed to launch designables agent because tool was shutting down. Check the console for a more detailed description and please file a bug report at feedbackassistant.apple.com.
翻訳
解決策など
@IBDesignableも@IBInspectableを使用することによるクラッシュ。Xcode再起動で治る
Fixed width constraints may cause clipping.
翻訳
解決策など
Viewを固定幅で指定しない。 Widthを>=に設定する
Fixed leading and trailing constraints with a center constraint may cause clipping.
翻訳
解決策など
Widthを>=に設定する
Trailing constraint is missing, which may cause overlapping with other views.
翻訳
解決策など
末尾に制約を追加する
2 views are horizontally ambiguous.
翻訳
解決策など
曖昧になっているビューを解決する。総数を表示しているだけ
Frame for "UI部品名" will be different at run time.
翻訳
解決策など
Storyboardを更新したら治る
Height and vertical position are ambiguous for "UI部品名".
翻訳
解決策など
Heightを指定
Position and size are ambiguous for "UI部品名".
翻訳
解決策など
位置とサイズを明示的に指定
Plain Style unsupported in a Navigation Item
翻訳
解決策など
ナビゲーションボタンのスタイルを「Plane」から「Done」に変更する
まだまだ勉強中ですので間違っている点や至らぬ点がありましたら教えていただけると助かります。
ご覧いただきありがとうございました。