Can’t compile code when working with CALayer June 13, 2023 by Tarik Make sure you also add the QuartzCore framework to your target. Just importing the header isn’t enough. XCode Screenshot