如何在 Mac 之间传输 Xcode 安装?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17126938/
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
How to transfer Xcode installations between Macs?
提问by user2200321
I'm going to be away from my home OSX machine and I'm going to be using another one. I won't have good internet connection where I'm going, so I can't download anything from the Mac App Store. Is there a way I can easily transfer over my existing Xcode installation onto a large enough USB flashdrive and reinstall it that way. I know that I can drag and drop, but from my experience from MSVS, compilers and IDEs seems to have multiple dependency files scattered around.
我将离开我的家用 OSX 机器,我将使用另一台机器。我要去的地方没有良好的互联网连接,所以我无法从 Mac App Store 下载任何东西。有没有一种方法可以轻松地将我现有的 Xcode 安装转移到足够大的 USB 闪存驱动器上,然后以这种方式重新安装。我知道我可以拖放,但根据我在 MSVS 的经验,编译器和 IDE 似乎有多个分散的依赖文件。
回答by JDS
When you use Xcode 4 everything you reallyneed, is in the Xcode.app bundle in your Applications folder. You can just copy this to your new computer.
If you want you can also copy ~/Library/Developer/Shared/Xcode
where plug-ins may reside.
An other interesting folder is ~/Library/Developer
. There are amongst others Docsests, iOS device logs, etc. stored. You may take a look yourself in there, to see if you need to copy this.
当您使用 Xcode 4 时,您真正需要的一切都在应用程序文件夹中的 Xcode.app 包中。您只需将其复制到新计算机即可。
如果需要,您还可以复制~/Library/Developer/Shared/Xcode
插件所在的位置。
另一个有趣的文件夹是~/Library/Developer
. 其中存储了 Docsests、iOS 设备日志等。你可以自己进去看看,看看你是否需要复制这个。
回答by Muhammad Noman
Steps
脚步
1- Copy Xcode.app file and paste to new mac's Application
folder
1- 复制 Xcode.app 文件并粘贴到新的 macApplication
文件夹
2- Copy ~/Library/Developer/
to new mac's location ~/Library/Developer/ folder
2- 复制~/Library/Developer/
到新 mac 的位置 ~/Library/Developer/ 文件夹
3-
3-
Issue - Xcode won't start, stuck on 'Verifying “Xcode”…'
Solution xattr -d com.apple.quarantine '/Applications/Xcode.app'
问题 - Xcode 无法启动,停留在“正在验证“Xcode”...”
解决方案 xattr -d com.apple.quarantine '/Applications/Xcode.app'
By running the above command, you are giving permission to Xcode to install it without verifying it.
通过运行上述命令,您授予 Xcode 安装它的权限,而无需验证它。
4- open Xcode in the Application directory.
4- 在应用程序目录中打开 Xcode。
Cheers !!!!
干杯!!!