如何再次添加已删除的框架 [英] How to add deleted frameworks again

查看:27
本文介绍了如何再次添加已删除的框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心删除了我的 Xcode 中的 AVFoundation 、 CoreFoundation 、 Foundation 和 UIKit.framework 、 CoreGraphics.frameworks 框架.有什么方法可以恢复它们.. 否则我将不得不重新安装 Xcode.

I accidentally deleted AVFoundation , CoreFoundation , Foundation and UIKit.framework , CoreGraphics.frameworks frameworks form my Xcode. Is there any ways to restore them.. or i will have to re-install the Xcode again.

推荐答案

如果您还没有清空回收站,请关闭 Xcode 并在 Finder 中打开回收站.找到您不小心删除的框架文件夹.在 Finder 中,打开另一个路径为 /System/Library/Frameworks 的窗口(如果要手动打开文件夹,则从 Macintosh HD 开始),然后将框架从 Trash 拖放到 Frameworks 文件夹.重新打开 Xcode,您应该可以在目标设置中再次添加框架.

If you haven't emptied the trash yet, close Xcode and open the Trash in Finder. Find the framework folder you accidentally deleted. In Finder, open another window with the path /System/Library/Frameworks (beginning on Macintosh HD if you want to open the folder manually), and drag-copy the framework from the Trash to the Frameworks folder. Reopen Xcode and you should be able to add the framework again in the target settings.

这篇关于如何再次添加已删除的框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆