Fix the Xcode Storyboard error. The ‘Frame for “Text View” will be different at run time.’

The Xcode error called ‘Frame for “Text View” will be different at run time.’ is frequent when you are trying to utilise Auto Layout by using reset to suggested constraints in Xcode Storyboard.

So here is how to fix it:

Step 01:
Above Debug: In your Xcode Storyboard view screen, you will have four buttons at the extreme right. Use the pin button, third from right, to add new constraints per item at the top, right, bottom, and left, and uncheck the constraint to margins.

ios-xcode-app-storyboard-pin-debug-area

Step 02:
You will see expected errors in the error log on the left-hand side pan of the Xcode storyboard under the issue navigator tab

Step 03:
Now select the expected view controller, then Go to > Editor > Resolve Auto Layout Issues > Under All views in ViewController, click on “Add Missing constraints.” You should now have fixed all issues in the issue navigator tab.

Hope it helps,

Thanks & Regards
Mandar Apte

Published by Mandar Apte

Mandar is a Mumbai-based multi-disciplinary designer with UX/UI, Logo, Symbol, and Brand Identity design expertise. He currently runs his Mudrkashar Linguistic Apple iPhone, iPad, and Mac app business in the heart of Mumbai city.

Leave a comment

Leave a Reply