问题
When I am opening my project in Xcode 9, getting above error for Storyboard and Launchscreen.
Note: Cleaning derived data didn't help me.
Please have a look at the screenshot.
回答1:
You can find the issue in Problem Report, just clink on report a bug and open the log.txt file where you can find the issue. In my case i set invalid table row height.
回答2:
Trash derived data by two ways either by command or Preferences.
rm -rf ~/Library/Developer/Xcode/DerivedData/
or
Xcode -> Preferences -> Location -> Derived Data
In Xcode menu go to product clear the project.
Disconnect connected device and restart Xcode and system.
More: https://www.e-learn.cn/content/wangluowenzhang/266937
回答3:
This generally happens when you have a compiler error in the code that the editor can't figure out or handle. So it crashes. Unfortunately, the only way to fix this is to find out the piece of code and fix it.
I had this when Swift could not figure out the type for one of my variables.
This answer is worth checking out as well.
回答4:
After quite some tries I was able to fix it here. Xcode-select was pointing to a wrong version of Xcode (here pointing to Xcode 8.3.3).
To check, use
xcode-select -p
To change, use
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
The problem seems to occur when using a Xcode 9 instance while xcode-select points to a Xcode 8 version. In case you need to use Xcode 8.x again, don't forget to switch back.
回答5:
When it was happen to me at that time I have configuration was like,
OS : macOS Sierra Version 10.12.6 Xcode : 9.0
I have created new project and open storyboard and this error was there.
Solution : I just quit the xcode and start again and error was not that.
So, it's just requires restart of xcode!
回答6:
Mostly this error occurred when you have open 2 different version of Xcode. Solution: Please close both Xcode and clear drived data.now again try, use one Xcode at a time
回答7:
Just quit (Forcefully if needed) the Xcode and start again.
回答8:
I was getting same issue in Xcode 10.2.1
I have open interface builder (Story board) as source code just like attached screen shot by right click on storyboard file
Followed below steps
- Updated version 3.0 to 3.5
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" - Open storyboard as interface builder again
Its get refreshed now and I was not getting error now and view was proper also
However when I revisted the spruce code of story board the version reverted to 3.0 again.
But this worked for as refresh and resolved my problem
回答9:
I have also faced this issue. Solution is very simple just delete the derived data of xcode and restart the xcode.
回答10:
For me, Just quitting Xcode and open again solved this issue
Xcode 9.4.1
MacOS High Seirra 10.13.4
回答11:
I had the same issue today
Xcode 10.1 ; Quit Xcode & Restarting Mac Book fixed this issue for today,
回答12:
I fixed this issue by-
- updating my Mac to MacOS High Siera
- deleted Xcode
- installed new Xcode from AppStore
回答13:
I faced the same issue. And solved by updating Command Line Tools and/or deleting unused/older Xcode versions,
Go to Xcode Preferences > Locations,
- Update Command Line Tools to Xcode 9.0
- Delete derived data
- Additionally, delete older Xcode versions
- Restart Mac
回答14:
This error is a general error when something goes wrong with Interface Builder. Unfortunately, the error itself does not point to a specific cause. It is sometimes an error in the tools, sometimes an error in the OS, sometimes an error in developer code, and sometimes an error in user configuration.
Common causes include:
- Incorrect permissions / ownership set on files.
- Manually deleting files in ~/Library/Developer.
- Installing buggy 3rd party kexts (especially security or firewall software).
回答15:
Xcode 9.3
Empty Storyboard/ new project
macOS High Sierra 10.13.4
For my case, this happens when I open a storyboard from a workspace.
So I got rid of workspace and cocoapods. Then just use xcode projects and carthage for thirdparty libraries. Storyboards open faster and without this error.
回答16:
I just resolved the same bug which appear on my xcode 9.3.1 by following below step,
- Clean the projects
- Quit the xocde
- Removed BUILD folder from project folder
- Open again
回答17:
I also had this issue and I tried most solutions provided here.
In the end, what helped me was quitting Xcode (Version 10.1) and restarting my MacBook.
来源:https://stackoverflow.com/questions/46585044/xcode-9-storyboard-an-internal-error-occurred-editing-functionality-may-be-lim