复制应用程序文件夹后无法启动Xcode 6.1.1 [英] Cannot start Xcode 6.1.1 after duplicating the app folder

查看:103
本文介绍了复制应用程序文件夹后无法启动Xcode 6.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的构建系统上,我们需要保留多个Xcode版本,以便也构建较旧的项目.我们为每个主要的Xcode版本(在Finder中)都复制了Xcode应用文件夹.

On our build system, we need to preserve multiple Xcode versions in order to also build older projects. We duplicate the Xcode app folder for every major Xcode release (from within Finder).

但是,在复制Xcode 6.1.1文件夹之后,我无法启动该应用程序.双击重复的文件夹(Xcode-6.1.1.app)后,它会短暂显示"Welcome"屏幕,然后立即将其关闭并显示警告:

However, after duplicating the Xcode 6.1.1 folder, I couldn't start the app. After double-clicking on the duplicated folder (Xcode-6.1.1.app), it briefly showed the "Welcome" screen, then immediately closed it and showed an alert saying:

/Applications/Xcode-6.1.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim不属于root.

/Applications/Xcode-6.1.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root.

原始Xcode.app可以正常打开.我可以在小牛和优胜美地上重现这个问题.

The original Xcode.app can be opened normally. I could reproduce this problem on both Mavericks and Yosemite.

有人看过吗?任何想法如何使重复的Xcode工作?谢谢!

Has anyone seen this? Any ideas how to make the duplicated Xcode working? Thanks!

推荐答案

打开终端并输入以下代码

Open Terminal and just type this code

sudo xcode-select -switch/Applications/Xcode.app/Contents/Developer

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

享受xcode的多个版本:)

enjoy multiple version of xcode :)

这篇关于复制应用程序文件夹后无法启动Xcode 6.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆