getXcodeDerivedDataPath static method

String? getXcodeDerivedDataPath()

Gets the Xcode DerivedData directory (macOS only).

Implementation

static String? getXcodeDerivedDataPath() {
  if (!Platform.isMacOS) return null;

  final home = PathUtils.getHomeDirectory();
  if (home.isEmpty) return null;

  return PathUtils.resolveAbsolute(
      path.join(home, 'Library', 'Developer', 'Xcode', 'DerivedData'));
}