Xcode 7.3 constantly building in idle

心已入冬 提交于 2019-12-05 11:54:04

in XCode: Editor > Automatically Refresh Views

Unselect it and re-run project. Thats it!

After some time struggling this, I finally solved this issue.

Xcode started idle build right after I open Interface Builder. Removing @IBDesignable across all project solved this, so I hope this issue can be solved in future Xcode updates to get using @IBDesignable again.

Going along with @oleg-kohtenko's answer, closing all Interface Builder windows seems to fix the issue without the need to remove @IBDesignable.

And if you aren't really using IBDesignable, you can still use IBInspectable attributes without causing the building problem.

Renato

Just my two cents if designables agent gets hang on Xcode 9. If you were visualizing the problematic storyboard as iPhone X, edit such storyboard file as source code (right click -> open as -> source code).

Near the top, you'll see a xml block stating

<device id=“retina5_9” ...>
    <adaptation id="fullscreen"/>
</device>

Change the id to “retina5_5” (iPhone plus, just the option I used, I’m assuming others would work).

Save and open the file as interface builder and you should be fine. Now take the time and file a bug report :D

Happy coding!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!