# XCode 11 Update

**URL:** <https://root-forum.cern.ch/t/xcode-11-update/36132>\
**Category:** Newbie\
**Created:** [September 23, 2019, 7:48pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132 "2019-09-23T19:48:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![usccaa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/e79b87/32.png) [@usccaa](https://root-forum.cern.ch/u/usccaa)\
**Post date:** [September 23, 2019, 7:48pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/1 "2019-09-23T19:48:42Z")

</div>

I made the dumb mistake of updating XCode before my thesis was finished. Now I’m getting this error.

warning: no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk’

Anyone got an easy fix? Is there a way to insulate my root install from XCode updates or is the solution to just never update?

_ROOT Version:_ 6.19/01  
_Platform:_ Mac  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [September 23, 2019, 8:08pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/2 "2019-09-23T20:08:09Z")

</div>

You ‘just’ need to rebuild from scratch (if you are more adventurous you can also do a search for 10.14.sdk in CMakeCache.txt and use the -U option of cmake to redo the calculation of the cmake variable that refers to this directory).

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![usccaa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/e79b87/32.png) [@usccaa](https://root-forum.cern.ch/u/usccaa)\
**Post date:** [September 23, 2019, 8:25pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/3 "2019-09-23T20:25:31Z")

</div>

I have a big presentation due this week that I’d hate to get derailed from by a rebuild of Root.

What exactly does this error mean? My program leans heavily on Roofit and seems to still be running ok. I know you have no possible way of knowing exactly what dependencies I have going on, but is it possible I could get away with just putting this rebuild off for a week?

---

<div class="post-metadata">

**Author:** ![wlav](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@wlav](https://root-forum.cern.ch/u/wlav)\
**Post date:** [September 24, 2019, 12:57am UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/4 "2019-09-24T00:57:20Z")

</div>

Actually, no, rebuilding from scratch didn’t do it for me b/c there was no system update to go with the xcode update, so cmake still looks for 10.14 and only setting MACOSX\_DEPLOYMENT\_TARGET would convince it otherwise.

If you don’t want to rebuild, get an old SDK from here:  
[https://github.com/phracker/MacOSX-SDKs/releases](https://github.com/phracker/MacOSX-SDKs/releases)  
or direct link:  
[https://github.com/phracker/MacOSX-SDKs/releases/download/10.14-beta4/MacOSX10.14.sdk.tar.xz](https://github.com/phracker/MacOSX-SDKs/releases/download/10.14-beta4/MacOSX10.14.sdk.tar.xz)  
Just unzip in the SDKs directory and you’re good to go. (Yes, I know, it says beta for 10.14, but it works fine on my system.)

Aside, I’ve hacked my local cling to not demand non-existing sysroot and simply use what’s there. That works fine, even without rebuilding the PCH.

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [September 24, 2019, 1:49am UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/5 "2019-09-24T01:49:00Z")

</div>

@usccaa did you see the message at run-time (in which case Wim’s answer is more appropriate than mine) or compile-time?

[Also if things works as is, just go ahead and continue using it for now; you can always start a build of ROOT in the background in a **new** build directory]

---

<div class="post-metadata">

**Author:** ![usccaa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/e79b87/32.png) [@usccaa](https://root-forum.cern.ch/u/usccaa)\
**Post date:** [September 24, 2019, 2:34pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/6 "2019-09-24T14:34:25Z")

</div>

whenever I start a Root session, I get the error

---

<div class="post-metadata">

**Author:** ![wlav](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@wlav](https://root-forum.cern.ch/u/wlav)\
**Post date:** [September 24, 2019, 4:14pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/7 "2019-09-24T16:14:01Z")

</div>

Yes, but if you have a pre-existing PCH built for 10.14 (which you do if this is a standard ROOT install), my experience is that you can treat the error as a warning.

---

<div class="post-metadata">

**Author:** ![usccaa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/e79b87/32.png) [@usccaa](https://root-forum.cern.ch/u/usccaa)\
**Post date:** [September 24, 2019, 6:54pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/8 "2019-09-24T18:54:05Z")

</div>

Ah, so if I’m understanding correctly:  
a) this is a warning  
b) wait until MacOS update to rebuild Root to resolve warning  
c) if I’m worried about the warning I can download an old SDK to use until the MacOS update releases

correct?

---

<div class="post-metadata">

**Author:** ![wlav](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@wlav](https://root-forum.cern.ch/u/wlav)\
**Post date:** [September 24, 2019, 7:51pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132/9 "2019-09-24T19:51:01Z")

</div>

AFAIK, yes. Just for context: I’m currently playing with creating portable binaries for conda. Right now, I have 6 different SDKs on my Mac, looking for differences and problems spots.

For a) note that historically the standard C++ headers lived under SDKs and only for more recent MacOSX-es do they now live under Toolchains (where it’s still under the same version, v1). So when that particular line of code was written, it really was an error.

For c) another thing that is pretty safe is to put a symlink of MacOSX10.14.sdk to MacOSX.sdk in SDKs. To be sure, a quick `diff -wr` shows plenty of differences, just nothing fundamental in the headers that ROOT would care about.
