0

我不小心删除了我的 Xcode 项目中的资产文件夹以清除新 Xcode 更新的内存,我该如何解决这个问题?我只是创建一个同名的新文件夹并重新添加资产吗?我已经清空了垃圾箱。

4

3 回答 3

0

If you dont have an assets in any other place even though Trash then need one 1024x1024 icon of your app to generate all assets also need to do following steps.

If you had accidently deleted the app icons folder from image assets then it will be look like this.

enter image description here

please dont be panic now just clean your project using Cmd+Shift+Alt+K then it will be seems like this

Now Click on use Asset Catalogue it will show the prompt like this.

enter image description here

Just click on Migrate Now there is the appIcon is present

enter image description here

Just click on right arrow and right click on the appIcons

enter image description here

Now open it in finder and make the appicon assets using the app named "Icon Set Creator" which is Free on appStore.

Once you generated all icons replace the generated folder will existing one.

Your all assets will be regenerated.

于 2018-04-05T07:31:57.580 回答
0

如果您不小心删除了资产文件夹,请确保它在垃圾箱中并将其替换并在 xcode 中再次添加。如果已从垃圾箱中删除,请尝试使用恢复工具恢复它。

于 2018-04-05T05:04:05.477 回答
0

您可以像任何其他文件一样将新资产目录添加到您的项目中。选择“新建文件...”,然后选择资源下的模板资产目录,您可能需要向下滚动才能看到它。然后将其命名为合适的名称。

于 2018-04-05T08:53:51.710 回答