`

重装Xcode3报错

    博客分类:
  • ios
 
阅读更多

 

<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;">&nbsp;卸载了XCode4的</span></p>
<p>本来想装old sdk for xcode的, 害的我不知道什么原因, 卸载了xcode.</p>
<p>搜索了, 才发现一个解决方法</p>
<p>&nbsp;</p>
<p>&nbsp;</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&nbsp;<em>an error</em>&nbsp;that caused&nbsp;<em>installation</em>&nbsp;to&nbsp;<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;">&nbsp;</p>
<p style="line-height: normal;">&nbsp;</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;">&nbsp;</p>
<p style="line-height: normal;">真是坑爹啊</p>
</div>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</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脚本会阻止分布式构建守护等进程,但安装器可能不会重新启动它们。移除系统框架,然后使用其他版本替换掉它们可能会让操作系统感到困惑。重启计算机则会正确地重新加载、初始化以及重启所有这些资源。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics