Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
383 views
in Technique[技术] by (71.8m points)

osx elcapitan - Xcode 6.4 on OSX 10.11 (El Capitan) beta 2 / beta 3

I am trying to run Xcode 6.4 on El Capitan and I can run with the instructions on this post.

But I am looking for a way to run it without any external program as I ran before with OSX 10.10 (Yosemite).

I found this post that point to this instructions but it does not work. These are the instructions

  1. Open this file /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exception.plist
  2. Find lines with name xcode in them (http://i.imgur.com/tcKWLhz.png)
  3. Edit value HardDisabled from YES to NO
  4. Save and reboot

    1.a) If you can't save because file says it's locked then enable rootless mode (sudo nvram boot-args="kext-dev-mode=1 rootless 0" or sudo nvram boot-args="kext-dev-mode=1 rootless=0") and reboot.

    1.b) If you still have problem, copy Exceptions.plist to Desktop (or wherever else) and edit it them.

    1.c) Save it and them remove Exceptions.plist in System (sudo rm -rf /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist)

    1.d) Copy file from Desktop (or wherever else) to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources and reboot.

I couldn't edit the Exceptions.plist file with the instructions above, but after a lot of tries I found the way to edit it.
Here you can find the instructions to edit it.

After all of this, I still receiving the message

You can't open the application "XCode.app" because it is not supported on this type of Mac

when I try to run Xcode 6.4 from Finder

SOLUTION 1
The only thing I didn't do was to reinstall XCode 6.4 after the changes. I reinstalled it and it works!

SOLUTION 2
Dave Wood provided another solution to avoid to reinstall XCode. This is is post and as he posted in his answer the script is here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Here's a shell script that tweaks Xcode 6 and resigns so you can just run it normally. No need to mess with the system exception list, reinstall or anything. Just takes a minute or so to run.

Script is here: http://bit.ly/Xcode6OnElCapitan

Note: you can not submit apps built on El Capitan while it's still in Beta.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...