xcode IOS:在哪里下载uikit和基础框架

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11417757/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:50:35  来源:igfitidea点击:

IOS : where to download uikit and foundation framework

iosxcode

提问by vishnu

I accidentally deleted my uikit and foundation frameworks.Its not present in Xcode.I know i can add it via build phase, But where can i get those frame works?thanks

我不小心删除了我的 uikit 和基础框架。它不存在于 Xcode 中。我知道我可以通过构建阶段添加它,但是我在哪里可以获得这些框架?谢谢

回答by Im_Lp

Just reinstall Xcode. Should embed the uikit and foundation frameworks the correct way and in their correct place.

只需重新安装Xcode。应该以正确的方式在正确的位置嵌入 uikit 和基础框架。

Just did a bit of research and its better if you uninstall / reinstall. there are multiple versions of the foundation framework on google and you don't want to mess with adding them via developer tools

只是做了一些研究,如果你卸载/重新安装它会更好。谷歌上有多个版本的基础框架,您不想通过开发人员工具添加它们

~/End of Line

〜/行尾

回答by Besi

I would recommend you use the new version of Xcode 4.3.xwhich is available on the App Store. This will install directly into your /Applicationsfolder. So re-installing is much easier than it used to be with previous installer-based versions:

我建议您使用App Store 上提供的新版本Xcode 4.3.x。这将直接安装到您的/Applications文件夹中。因此,重新安装比以前基于安装程序的版本要容易得多:

  1. Delete /Applications/Xcode.app
  2. Install Xcodeagain from the AppStore.
  1. 删除 /Applications/Xcode.app
  2. 从 AppStore 再次安装 Xcode

This should fix your problem because the said frameworks reside here (inside the App package):

这应该可以解决您的问题,因为上述框架位于此处(在 App 包内):

 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/