0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Swift】Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.でクラッシュする

Posted at

概要

iPhone6s (iOS9.3) で実行すると

掲題のエラー

Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.

と出てクラッシュする問題。

解決方法

スクリーンショット 2020-01-20 17.16.11.png

どうやらいろんな原因でこのクラッシュが起きるみたいですが僕の場合は
クラッシュ対象となるクラスのxib上で赤枠で囲っているプルダウンを

AutomaticからTranslates Mask Into Constraintsに変更

するだけ、で直りました。
なんで、これでなおるかは要調査ですが。

他の事例。
https://qiita.com/matsuyoro/items/9219c23a70c012d6e3e5
https://qiita.com/kaktaam/items/1c07f6bf003cee77cc31

誰かのお役に立てば。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?