DyCI/dyci-main

Losing Clang on Xcode Update

PaulTaykalo opened this issue · 9 comments

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

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

Or save clang-backup in ~/.dyci folder

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"

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.

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

And thanks for taking time to reply me.

Does it work after cleanup?

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

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

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.