Cannot start Xcode 6.1.1 after duplicating the app

2019-07-21 15:22发布

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).

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 is not owned by root.

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

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

See the screenshot below

4条回答
男人必须洒脱
2楼-- · 2019-07-21 15:40

Open Terminal and just type this code

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

enjoy multiple version of xcode :)

查看更多
叛逆
3楼-- · 2019-07-21 15:45

The xcode-select commands did not work for me. So I deleted that copy I made with the Finder, and used the free Duplicate (which copies permissions and other metadata correctly when it makes the duplicate) to copy it from a backup. After that it launches flawlessly.

查看更多
倾城 Initia
4楼-- · 2019-07-21 15:51

I fixed it with chown:

sudo chown -R root /Applications/Xcode6.1.1.app/

查看更多
迷人小祖宗
5楼-- · 2019-07-21 16:04

type following command in terminal: enter image description here

查看更多
登录 后发表回答