How to add deleted frameworks again

前端 未结 4 1046
星月不相逢
星月不相逢 2020-12-10 04:28

I accidentally deleted AVFoundation , CoreFoundation , Foundation and UIKit.framework , CoreGraphics.frameworks frameworks form my Xcode. Is there any ways to restore them.

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 05:05

    If you haven't emptied your trash, you'll find your frameworks there. In case the deleted frameworks are iOS frameworks just copy/move them back from your trash to your XCode frameworks directory, which would be the following for most installations to date (XCode 5 + iOS 7):

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/

    For OS X frameworks the path posted by 555nick may be the right one (haven't tested that though): /System/Library/Frameworks

    Btw: You can fast-open such paths by opening the finder and using the Shift+Cmd+G shortcut.

提交回复
热议问题