Xcode 8 Storyboard error

痞子三分冷 提交于 2020-01-03 01:54:12

问题


I am working on building an app. Earlier I have used Xcode 7.1 at that time everything was working fine. Recently I have installed Xcode 8.0 as well and I have both the setups installed into in two different directories Xcode_7, Xcode_8 and I renamed the setup files as well. Everything was working fine but lately I am getting the following error while working with Xcode 8.

"An internal error occurred. Editing functionality may be limited "

and the storyboard view objects are all gone empty like shown in the image but I am able to click on a specific view and still can see their properties defined through attributes inspector but nothing shows up in storyboard still I am able to build the project successfully but while loading it in simulator it says

Unable to boot the iOS simulator

I have followed few tips like reinstalling the Xcode , trashing the derived data from preferences. Nothing helped so far. Please let me know if anyone resolved this issue.

Storyboard file ViewObjects all gone empty

UPDATE

I have found the fix with the help of apple forums here Visit!. Disabling the SIP (System Integrity Protection) in my iMac which runs on El Capitan solved the issue however not sure disabling it will raise any further errors. :)


回答1:


Try This

Go to Xcode -> Preferences -> Locations -> Derived Data -> click the arrow to open in Finder -> And delete the content of that folder.

Hope it helps!




回答2:


Restart your mac, press cmd+R and open in recovery mode.

Open terminal and type command --> csrutil disable

restart mac..

open terminal--> sudo chmod 0777 / private / tmp 

then run your xcode, simulator will work fine :)




回答3:


To all you Xcode 8 users out there:

Make sure you are running mac os sierra! It isn't said that being on el capitan will cause this problem. But I have updated to Sierra and everything works fine now!



来源:https://stackoverflow.com/questions/40102726/xcode-8-storyboard-error

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