Why Am I Getting a "Auto Layout Still Required After Executing -Layoutsubviews" Error Every Time My App Launches Now

Ambiguous layout warnings in Xcode 13.0

I noticed the same bug on my app. It's happening in Static cells in TableView Controller, and ambiguous layout warning appears only for those cells that can be reached after scrolling down.

Steps I took to remove layout warnings:

  1. Select the view controller that shows autolayout warnings
  2. Inspectors > Size > Simulated Size > Freeform (see image below)
  3. Change height so that all cells are displayed

Now all those warnings are gone!

Xcode version: 13.2 (13C90)

Simulated Size image

Xcode 8 - IB Designables - Failed to render and update auto layout status, The agent crashed

You can try one of the following to figure out the cause:

  1. look for the IBDesignablesAgentCocoaTouch logs in this directory:
    ~/Library/Logs/DiagnosticReports and see the cause.

Note: for user with Catalina: look for
IBDesignablesAgent-iOS_<DATE>-<MAC_NAME>.crash


  1. Go to the Editor -> Debug Selected View while selecting your @IBDesignable UIView in your storyboard, and see the stack trace.

  2. Delete Derive Data folder.

    Xcode Preference -> Location -> Derived Data
    /Users/YourMacName/Library/Developer/Xcode/DerivedData
  3. Clean your project Shift + Command + Alt + K.

  4. Build your project Command + B.

@IBDesignable error: IB Designables: Failed to update auto layout status: Interface Builder Cocoa Touch Tool crashed

There are crash reports generated when Interface Builder Cocoa Touch Tool crashes. Theses are located in ~/Library/Logs/DiagnosticReports and named IBDesignablesAgentCocoaTouch_*.crash. In my case they contained a useful stack-trace that identified the issue in my code.

Not Auto launching app when I run thru android studio

It is because you are running it as a 'test' and not as an 'Android Application'.

  1. Open the "Edit Configurations" pane and click the '+' button.
  2. Select the option to create a new 'Android Application' and then select the correct module.
  3. Apply, and you can then delete the test configuration you were using before if you wish.

Then every time you run, make sure you are running as an Android Application and not a test, and it will auto-launch on install.

Xcode 5 layout errors - Misplaced View Frame for Label will be different at runtime

If you're still looking for an answer here, the answer is likely that you have either no constraints, or improper constraints, on your AutoLayout view.

You can fix this by selecting the view and going to the Xcode menu option: Editor -> Resolve Auto Layout Issues -> Add Missing Constraints / Reset to Suggested Constraints.

You can also select the entire layout and do the same thing, this will reset all of the views on your layout to recommended constraints.

If you need to do custom constraints, you will have to set up your own auto layout constraints either in the Storyboard/XIB file, or manually in code.

For more information about Auto Layout, you can see Apple's documentation.

Finally, you can also turn off auto layout on the layout if you want it to appear as-is, with no automatic readjustments (this is not recommended).

Sample Image

Android Studio not deploying changes to app

I've got the same problem. This thread popped up first when I've searched for it. Solved it (hoping so) by not using the Instant Run feature. Might not be the best solution but it works for now.

Just go to "File -> Settings -> Build, Execution, Deployement -> Instant Run" and just disable it. With this Android Studio builds from scratch each time but it's better than not building it right.

Mini rant: Almost each version of Android Studio comes with an annoying bug. They're about to release the version 2 but its beta is still buggy. I hope they stabilize the IDE in the near future.



Related Topics



Leave a reply



Submit