Skip to main content
Participant
Nov 3, 2026 3:04 PM UTC
Question

InDesign SDK 21.2 – No member named 'IDFileToFSRef' in 'FileUtils' while building MacFileSystemIterator.cpp

Hi everyone,

I'm migrating/building an existing InDesign plug-in using the InDesign SDK 21.2 on macOS.

While compiling the project, I'm encountering the following error:

MacFileSystemIterator.cpp:139:35
No member named 'IDFileToFSRef' in 'FileUtils'

Existing code:

void MacFileSystemIterator::SetStartingPath(
const IDFile& fileSpec)
{
FileUtils::IDFileToFSRef(fileSpec, fStartingFileRef);
}

 

It appears that IDFileToFSRef() is not available in the FileUtils class in SDK 21.2.

My questions:

  1. Has IDFileToFSRef() been deprecated or removed in the newer InDesign SDK?

  2. Is there an alternative API to convert IDFile into FSRef?

  3. If this API has been removed, what is the recommended approach for updating MacFileSystemIterator.cpp to work with SDK 21.2?

  4. Is there an updated implementation of MacFileSystemIterator available?

Development environment

Component

Version

macOS

Tahoe 26

Adobe InDesign

2026 – v21.2

InDesign SDK

21.2

Xcode

26.3

Language

C++

Platform

macOS

3 replies

Community Expert
Nov 3, 2026 3:09 PM UTC

If I remember correctly this change was done quite a few versions ago. What version of SDK are you porting this from?

Translate
-Manan
Participant
Nov 3, 2026 3:24 PM UTC

We are currently porting our existing plug-in from InDesign 2024 (Version 19.1) to InDesign 2026 (Version 21.2). Please can you share any documentation related to this.

Translate
Community Expert
Nov 3, 2026 3:56 PM UTC

I will check if I find something. If I remember correctly we had to rewrite this ourselves. There was no readymade function as such. Also, do note that the latest version of InDesign have changed the Mac paths as well from HFS to Posix. This will need attention as well else you will see silent failures/crashes

Translate
-Manan