Xcode 6 GM using disk space and memory

I am trying to update our iPhone application to work with iOS 8, but when I build with Xcode 6 it will freeze when compiling the storyboard and start eating disk space and memory - this happens sporadically.

This way, it will work well on the same simulator or phone several times, and then I try to build again, and it just freezes (always when compiling the storyboard step). Then I check and there are no gigabytes of disk space, and then the computer crashes as soon as all the memory disappears.

I am here and I can’t release our iOS 8 app because Xcode 6 isn’t working!

It looks like sometimes building a storyboard causes a huge memory leak (but also disk space, which is weird).

I am in GM version of Xcode 6. I also tried Xcode 6.1 beta.

Xcode 5 works great.

Love the ideas! Really stuck here.

You can see that Interface Builder is powered by memory: It's definitely Interface Builder that's eating the memory

+5
source share
1 answer

Since you created your project in Xcode 5, automatic layout was turned on by default. There is a big mistake in Xcode 6.0 (hope Apple handles it) with Auto Layout and projects created in Xcode 5. Here's what you need to do:

Open the project (or workspace) and right-click the storyboard file. Choose Open As β†’ Source Code. Look at the top of an XML text document. You should see autoLayout = "ON". Just delete this text. Now CLEAN and BUILD. You should be able to run the project without problems.

Hope this helps!

0
source

Source: https://habr.com/ru/post/1202692/


All Articles