简体   繁体   English

Xcode卡在资产目录打开中

[英]Xcode stuck on Asset Catalog opening

My project has a lot of assets. 我的项目有很多资产。 Opening the assets folder makes Xcode freeze. 打开资产文件夹会使Xcode冻结。 Even creating a new, empty assets folder freezes Xcode once I open it. 打开Xcode后,即使创建一个新的空资产文件夹也会冻结Xcode。 How can I fix the problem? 我该如何解决该问题?

Been dealing with this for a couple of days already. 已经处理了几天。

Last thing I did was: 我做的最后一件事是:

  • check any "Massive/Big" image and remove it from the catalog. 检查任何“大/大”图像并将其从目录中删除。 I found a 17mb image so I remove it from the physical folder ../YourProject/Assests.xcassets. 我发现一个17mb的图像,因此将其从物理文件夹../YourProject/Assests.xcassets中删除。

I did this after: 我这样做是:

  • deleting DerivedData, 删除DerivedData,
  • resetting XCode's default configs 重置XCode的默认配置
  • cleaning up my project dozen times. 打扫我的项目十多次。
  • Also I ran ImageOptim on all the pngs in my project just to make sure there were not any corrupted file. 另外,我在项目中的所有png上运行ImageOptim只是为了确保没有任何损坏的文件。

None of that worked until I removed the big file from the Catalog. 直到我从目录中删除了大文件,这些都无济于事。 Funny enough, after been able to open the Assets folder I restored the "big image" and now is working correctly. 有趣的是,在能够打开Assets文件夹后,我还原了“大图像”,现在可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM