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

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

问题描述

我意外地删除了AVFoundation,CoreFoundation,Foundation和UIKit.framework,CoreGraphics.frameworks框架形成了我的Xcode。
是否有任何方法可以恢复它们?或者我将不得不重新安装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开始),然后将框架从垃圾箱到框架文件夹。重新打开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天全站免登陆