Xcode 8 Storyboard error

2019-05-29 23:27发布

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. :)

3条回答
女痞
2楼-- · 2019-05-29 23:42

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!

查看更多
来,给爷笑一个
3楼-- · 2019-05-29 23:43

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 :)

查看更多
时光不老,我们不散
4楼-- · 2019-05-29 23:59

Try This

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

enter image description here

Hope it helps!

查看更多
登录 后发表回答