美文网首页
Mac OS 系统占用内存过大

Mac OS 系统占用内存过大

作者: 善良的皮蛋 | 来源:发表于2019-10-09 10:08 被阅读0次
    • 删除文件
    • 补救措施

    以下方法只针对iOS开发者使用的电脑

    今天看到系统所占内存居然高达180G,整个人都是懵逼的。废话不多说,开始操作。

    前往+option键 -> 资源库 -> Developer
    清空一下文件夹
    CoreSimulator -> Devices
    Xcode - > Archives
    Xcode - > DerivedData
    Xcode - > iOS DeviceSupport

    可用内存一下子从40G飚到了110G,打开Xcode模拟器提示错误:Use the device manager in Xcode or the simctl command line tool to either delete the device properly or erase contents and settings.

    Xcode提示这个错误

    image.png

    查阅了下网上的方法都是说要重新添加模拟器

    1.第一步


    image.png

    2.第二步


    image.png

    注意: 先删掉以前残留的名称,然后重新如第二步,添加即可。

    相关文章

      网友评论

          本文标题:Mac OS 系统占用内存过大

          本文链接:https://www.haomeiwen.com/subject/dyuxyctx.html