<p>最近卸载了重装Xcode3报错: 未知错误, 请您重新安装, 莫名其妙的, 我可是 按照<span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;">sudo /Developer/Library/uninstall-devtools --mode=all</span><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;"> 卸载了XCode4的</span></p>
<p>本来想装old sdk for xcode的, 害的我不知道什么原因, 卸载了xcode.</p>
<p>搜索了, 才发现一个解决方法</p>
<p> </p>
<p> </p>
<table style="font-family: Arial; width: 800px;" border="0">
<tbody>
<tr>
<td style="font-family: Arial; line-height: 18px;">
<div id="blog_text" class="cnt" style="font-family: Georgia; line-height: 20px; color: #555555;">
<p style="line-height: normal;"><span style="background-color: #ffffff;">xcode the installation failed an unknown error occurred, the installer encountered an <em>an error</em> that caused <em>installation</em> to <em>failed</em></span></p>
<p style="line-height: normal;"><span style="background-color: #ffffff;">i solved the problem by a very unbelievable solution which I saw on the other forum... I just changed the system time to "2012/01/01" for mac os. After that, the problem solved....</span></p>
<p style="line-height: normal;"> </p>
<p style="line-height: normal;"> </p>
<p style="line-height: normal;"><a href="http://hi.baidu.com/shiyiyufen/blog/item/4a74a82e0562cecc8b1399ec.html">http://hi.baidu.com/shiyiyufen/blog/item/4a74a82e0562cecc8b1399ec.html</a></p>
<p style="line-height: normal;"> </p>
<p style="line-height: normal;">真是坑爹啊</p>
</div>
</td>
</tr>
</tbody>
</table>
<p> </p>
1.4 移除与重新安装Xcode
Xcode Developer Tools可以从系统中完全删除自己--包括整套工具、支持文件、库与框架。这么做的好处在于它会执行一次干净的安装。Apple经常会向ADC成员提供Xcode的预发布版本。一般来说,不能使用某个发布版本覆盖掉预发布版本,即便发布版本更新也不行。有时还可能想要将安装降级,而常规的安装过程是不允许这么做的。
要想移除安装的Xcode,打开终端窗口并输入如下命令:
sudo /Developer/Library/uninstall-devtools --mode=all
如果不是在/Developer目录中安装的Xcode,则需要根据情况改变路径。如果该文件已经不存在--早期版本的Xcode使用存储在其他位置的不同脚本--参考"About"文档来了解当前安装的版本以找到合适的脚本。
必须以管理员账号运行脚本。sudo命令会提示输入管理员账号的密码。
脚本使用之前安装的Xcode来移除曾经安装的所有内容。它还会处理某些特殊情况,例如移除在后续安装过程中所创建的符号链接。
--mode参数有4个可能的值,如表1-2所示。
表 1-2
MODE
|
说 明
|
all
|
移除Xcode安装的所有工具与目录
|
systemsupport
|
只从启动卷标中移除UNIX支持文
件(实用工具、man页面等)
|
unixdev
|
移除UNIX Developer Support包所安
装的编译器与其他命令行工具,参见表1-1
|
xcodedir
|
只移除/Developer目录或其父目录。
相当于将/Developer目录拖拽到回收站中
|
移除旧版本的开发者工具后,可以重新安装任意版本的Xcode。安装器会认为这是一次全新的安装且会安装所有内容的全新副本。
重新安装工具后,需要重启系统。uninstall - devtools脚本会阻止分布式构建守护等进程,但安装器可能不会重新启动它们。移除系统框架,然后使用其他版本替换掉它们可能会让操作系统感到困惑。重启计算机则会正确地重新加载、初始化以及重启所有这些资源。
分享到:
相关推荐
将文件解压复制到/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib路径重启xcode10即可
xcode报错SDK does not contain 'libarclite' at the path
Xcode9更新xcode10以上报错解决方法 将附件的libstdc++.6.0.9.tbd放在那下面,重新编译即可通过 Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
xcode10升级报错 把该库解压后放入xcode10的库中即可 路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib 来自xcode9.3.2
ios xcode 老项目报错缺失stdc++.6.0.9 的文件
2:根据Xcode相关报错发现没有的调试包版本,在以下对应地址中下载好后,解压出来直接拖入其中。然后 ⭐️重启Xcode⭐️,连接手机打开项目 command + B 编译通过后即可。 3:记住:⭐️重启Xcode⭐️
/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Xcode9打包过的项目,用Xcode8运行时报错,缺少FileProvider.framework文件,下载后解压放在Xcode的“Frameworks”目录下即可。
Hikari Xcode工具链
iphone系统到了12.2,xcode无法进行真机调试了,报错: is running iOS 12.2 (16E227), which may not be supported by this version of Xcode. 可以下载此包,包含四中12.2真机调试机型。 解压缩zip文件并复制到...
主要是练习Moya的熟练使用,全文涉及到CYLTabBarController搭建简单易用的框架、Swift和OC互相调用、FLEX显示界面层级UI的属性、ObjectMapper解析数据、Kingfisher加载网络图片、MBProgressHUD融合到请求里自动显示...
Xcode 低版本用到的.a库
如果想要开发Mac OS X或iPhone应用程序,那么...《Xcode 3高级编程》介绍了Xcode 3集成开发环境,详细介绍了Xcode 3激动人心的功能、其使用目的以及如何更好地使用这些功能来实现Xcode 3工作流的流畅、有效与高效运作。
主要给大家介绍了关于Xcode 10升级导致项目报错的常见问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
低版本的Xcode打包ipa上传AppStore报错ERROR ITMS-90725,显示报内容 通过以下路径去找sdk:Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 解压替换
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/ 模拟器 dylib放到这个路径 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS....
Appium是个新东西,支持原生的APP自动化测试,基于Android和iOS提供的SDK,最近apple发布了最新的Xcode,今天不小心更新了,再次使用appium的inspector时各种报错,于是一步步的进行修改源码。 由于Xcode6修改了...
ios的直條圖開發程式碼,可作出3D效果可翻轉使用的直條圖,蠻好用的分享給大家。
Xcode10报错之libstdc++.6.0.9.tbd未找到(library not found for -lstdc++.6.0.9)需要用到的旧库。解压后粘贴到指定目录: 真机: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/...
规范化的注释,主需要输入三个斜线“///”,就OK啦。Xcode6.1上可以使用