com.apple.InterfaceBuilder error -1. Storyboard Can Not Be Opened

后端 未结 4 1151
我寻月下人不归
我寻月下人不归 2021-01-21 11:30

I\'ve run into a slight complication with a project and need some assistance.

I recently purchased a Mac Mini and wish to begin working on some of my app projects from i

相关标签:
4条回答
  • 2021-01-21 11:58

    I would hazard a guess that the location that the project file is using is likely not the same as the one you copied over. This can happen easily if you pull in a file from outside your project directories. A quick manual reconnection can be done like so:

    1. Find the file in the Project Navigator. Right-click it (or the equivalent) and select Delete. In the pop-up that appears, select Remove Reference.
    2. Still in Project Navigator, right-click on the folder that that file was formerly listed under and choose Add Files To "Your Project Name". Track down the location of the file and Add it. It should appear in the Project Navigator again.
    0 讨论(0)
  • 2021-01-21 12:03

    I don't know how my experience relates to yours, but I had the same issue and was finally able to resolve it by removing an activity indicator view via the storyboard's XML. Specifically, the code I removed was this:

    <activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750” verticalHuggingPriority="750" hidesWhenStopped="YES" style="gray" id="XNx-FL-WkR">
        <rect key="frame" x="15" y="80" width="20" height="20"/>
        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
    </activityIndicatorView>
    

    When I removed these lines of XML and switched back to the Interface Builder view, XCode removed an outlet the indicator was connected to (just one line).

    Hope that helps someone! I'll update my answer if I find an explanation for why this fixed the problem for me.

    0 讨论(0)
  • 2021-01-21 12:10

    If the error was after a git merge, then i suggest you to clean the inferredMetricsTieBreakers at your Storyboards bottom.

    1. Open Storyboard as Source Code (what else could you do?)
    2. find inferredMetricsTieBreakers block
    3. remove all <segue reference=""/>
    4. Open Storyboard as Interface Builder - Storyboard
    5. Profit!
    0 讨论(0)
  • 2021-01-21 12:18

    This error can occur, when an additional but not installed font is used. Install this font and open the storyboard again.

    0 讨论(0)
提交回复
热议问题