-1

I'm getting this error from Xcode 7:

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.

I fully understand what can cause this error, I check this question and this one also, but I can't figure out what causing the problem in my code, I just can't find it.

Community
  • 1
  • 1
ytpm
  • 4,962
  • 6
  • 56
  • 113
  • When and where you are getting that error ? Can you add some code ? – Midhun MP Oct 10 '15 at 18:18
  • [Maybe this is your issue](http://stackoverflow.com/questions/28302019/getting-a-this-application-is-modifying-the-autolayout-engine-error) [http://stackoverflow.com/questions/28302019/getting-a-this-application-is-modifying-the-autolayout-engine-error](http://stackoverflow.com/questions/28302019/getting-a-this-application-is-modifying-the-autolayout-engine-error) – Tà Truhoada Oct 10 '15 at 18:22
  • "I just can't find it" Sorry to hear that, but that is not a question. – matt Oct 10 '15 at 18:29
  • http://stackoverflow.com/questions/28302019/getting-a-this-application-is-modifying-the-autolayout-engine-error – Tà Truhoada Oct 10 '15 at 18:30
  • That's the problem, I don't know where is it! – ytpm Oct 10 '15 at 18:30
  • You should see that error *when* your code that's modifying the UI is executing. When does that error appear? What is happening in your app at the time? – Craig Otis Oct 10 '15 at 18:56

1 Answers1

0

Find place where your UI is being modified on background thread and also pushing View Controller on navigation stack from background thread causes this error, posting that code on main thread will fix it.

Usama
  • 1,945
  • 1
  • 13
  • 20