Xcode storyboard: Internal error. Please file a bug

后端 未结 18 1795
不知归路
不知归路 2020-12-12 23:18

While editing in the storyboard, specifically assigning a view controller to a specific class, I suddenly encountered this error when I wanted to run the project.

Ma

相关标签:
18条回答
  • 2020-12-13 00:11

    In my case, the problem was with a UITextField as a subview in a UITableViewCell with 'Basic' styling. Once I changed it from 'Basic' to 'Custom' It started compiling.

    0 讨论(0)
  • 2020-12-13 00:11

    For me, I removed a whole UITableView section that was playing up. It only had one cell, but obviously something was up. Removing it and restarting Xcode fixed it for me.

    0 讨论(0)
  • 2020-12-13 00:13

    Just ran into this error, and it coincided with non-available iOS versions showing for the wrong Xcode (e.g., iOS 11.2 showing for Xcode 8.2.1, which is not possible for iOS Simulators).

    Solution was to delete /Library/Developer/CoreSimulator, e.g.,

    rm -rf /Library/Developer/CoreSimulator
    

    In theory you should be able to run xcrun simctl delete unavailable but that didn't work in this case.

    Note Found this issue on Xcode 8.2.1, but 9.2 was also installed.

    0 讨论(0)
  • 2020-12-13 00:15

    Clearing out the DerivedData folder (in ~/Library/Developer/Xcode/DerivedData) is what fixed the issue for me.

    0 讨论(0)
  • 2020-12-13 00:17

    None of the other answers worked for me. Here's what did.

    1. Open the storyboard, select all and copy.
    2. Create a new storyboard, paste.
    3. Delete original storyboard.
    4. Rename all references to old storyboard.

    Build and run.

    0 讨论(0)
  • 2020-12-13 00:19

    Try Deleting each view controller and Build to find the view controller causing an issue.

    In my case, I misplaced object in the storyboard.

    Deleting this object worked for me.

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