Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Losing Clang on Xcode Update #8

Open
PaulTaykalo opened this issue Nov 25, 2012 · 9 comments
Open

Losing Clang on Xcode Update #8

PaulTaykalo opened this issue Nov 25, 2012 · 9 comments
Labels

Comments

@PaulTaykalo
Copy link
Member

If dyci is installed, then, when Xcode updates,
it deletes clang-real, and clang-backup

And you can restore it only by fully removing and reinstalling Xcode

That sucks.

Current solution 1:
Uninstall dyci before updating Xcode

Current solution 2:
Remove and reinstall Xcode

@AlexDenisov
Copy link
Contributor

Or just copy
/usr/bin/clang
to
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

It works, because they are the same ;-)

@ArtFeel
Copy link
Member

ArtFeel commented Nov 25, 2012

Or save clang-backup in ~/.dyci folder

@prabhakaran-p-1044
Copy link

I keep getting this error, after I changed the build phases to configure another run script.

"Couldn't load index file '/Users/prabha-1044/.dyci/index/8845d3f04edeb8499c9547d736a6ba41' (/Users/prabha-1044/Friendtam/Official/NativeApp/HomeViewController.m). Use default compilation instead"

@PaulTaykalo
Copy link
Member Author

would you be so kind to post comments to correct thread?
Read FAQ https://github.com/DyCI/dyci-main/wiki/FAQ
If you're still getting this error, feel free to post the issue with more detailed description.

@prabhakaran-p-1044
Copy link

@PaulTaykalo : Sorry about that. I just lost track of finding my way to the issues page.

And thanks for taking time to reply me.

@PaulTaykalo
Copy link
Member Author

Does it work after cleanup?

@prabhakaran-p-1044
Copy link

Nope, Its working in XCode 5, but not in XCode 4.6.3.

I have tried clean and also deleted all DerivedData builds.

Posting this in new issue #26

@hashier
Copy link
Contributor

hashier commented Apr 14, 2014

Update from 5.0.x -> 5.1 worked without removing dyci first. Everything looks fine after update.

$ ll /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang*
-rwxr-xr-x  1 root  wheel  36874304 Apr 11 11:49 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang*
lrwxr-xr-x  1 root  wheel         5 Mar 11 15:04 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++@ -> clang

(and yes, it's clang, and not the proxy)

and after reinstallation of dyci:

$ ll /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang*
-rwxr-xr-x  1 root  wheel      2291 Apr 14 10:50 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang*
lrwxr-xr-x  1 root  wheel         5 Mar 11 15:04 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++@ -> clang
-rwxr-xr-x  1 root  wheel  36874304 Apr 14 10:50 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-real*
-rwxr-xr-x  1 root  wheel  36874304 Apr 14 10:50 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-real++*
-rwxr-xr-x  1 root  wheel  36874304 Apr 14 10:50 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang.backup*
-rw-r--r--  1 root  wheel      1371 Apr 14 10:50 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clangParams.p

@PaulTaykalo
Copy link
Member Author

If you're using dyci from Xcode only, you can try to use install.sh -s. This will not proxy clang, so you'll not have this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants