【问题标题】:Storyboard broken after updating Xcode to version 10.3 (10G8) & app no longer is running将 Xcode 更新到版本 10.3 (10G8) 后故事板损坏,应用程序不再运行
【发布时间】:2023-03-17 22:50:01
【问题描述】:

我刚刚将 Xcode 更新到版本 10.3 (10G8)。

现在我的项目没有运行并出现此错误:

/* com.apple.actool.errors */
: error: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4
    Failure Reason: Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4 (Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4)
    Underlying Errors:
        Description: Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4
/* com.apple.actool.compilation-results */
/Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx-dxlvvymxzdfqjubnuntqlxggtyja/Build/Intermediates.noindex/xxxxx.build/Debug-iphonesimulator/xxxxx.build/assetcatalog_generated_info.plist

故事板现在是这样的:

【问题讨论】:

标签: xcode storyboard


【解决方案1】:

我有同样的问题,我所做的只是

明确约束,对于我来说,源来自 UITableView,并确保约束附加到安全不是超级视图。 see image

从顶部的工具栏转到 Editor > Canvas > Layout Rectangle 非常重要,您必须重复此步骤 3 次

退出XCode再重新打开,应该都修复了

当我为不同的设备 8、11、4s 切换视图时,我注意到会发生这种情况

祝你好运

【讨论】:

    【解决方案2】:

    从终端运行sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 解决了我的问题。

    【讨论】:

    • @rmaddy,这是一个比接受的答案更好的答案
    • 哇!这就像魔术一样!感谢您的时间和精力!
    • 是的,为我工作。必须在 killall9 之后重新启动 Xcode
    • 非常适合我,这意味着我不必重新启动我的机器。谢谢!
    • 天哪,这是一个答案!我被一个正在经历 SWIFT 重写的项目吓坏了——我差点重新设计所有的故事板。你节省了我的时间和精力。
    【解决方案3】:

    我重启了我的mac,问题解决了。

    【讨论】:

    • 如果您在更新后看不到模拟器,此解决方案也有效。
    • 但是,它不会修复“发行说明”和“Xcode 中的新功能”菜单将您发送到localhost ?
    • 我在 Windows+Visual Studio 上遇到的第一大问题现在出现在我的 Mac 上...
    • 谁能想到一个单行的答案(对我来说更像是评论)会得到如此多的支持.. :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-02
    • 2015-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-05
    • 1970-01-01
    相关资源
    最近更新 更多