Setting -framework Carbon only for the linker when UI enabled in Apple.