Sorry, this isn’t specifically an ITK issue (I think), but I’m struggling to think where else to ask for help.
I compile my tools that use ITK on a Mac. Last night, my Mac appears to have downloaded an XCode update without asking me that has installed the Mac OS 10.14 SDK. It has also removed the 10.13 SDK. Compiling my programs now fails because:
error: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreFoundation.framework', needed by 'Source/CoreProgs/qihdr', missing and no known rule to make it
This is not surprising, as the
MacOSX10.13.sdk indeed does not exist. Setting the
CMAKE_OSX_DEPLOYMENT_TARGET to 10.14 results in the same error, even though CMake is setting
CMAKE_OSX_SYSROOT to the 10.14 directory. So I have two issues:
- Why does my code require
CoreFoundation? These are command-line tools with no UI, and my
CMakeLists.txtfiles don’t specify it (I also compile on Linux fine). Sub-question - why does CMake insist on looking for the 10.13 SDK even when the deployment target is 10.14?
- Where has the 10.13 SDK gone, and how do I get it back? You used to be able to install SDKs from the
Preferences->Componentstab, but now all I see listed are Simulators.
I have not yet tried re-compiling ITK itself to see if that is hit by the same error. Googling hasn’t turned up anything. Any ideas warmly received.