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:
-
Has
IDFileToFSRef()been deprecated or removed in the newer InDesign SDK? -
Is there an alternative API to convert
IDFileintoFSRef? -
If this API has been removed, what is the recommended approach for updating
MacFileSystemIterator.cppto work with SDK 21.2? -
Is there an updated implementation of
MacFileSystemIteratoravailable?
Development environment
| Component | Version |
|---|---|
| macOS | Tahoe 26 |
| Adobe InDesign | 2026 – v21.2 |
| InDesign SDK | 21.2 |
| Xcode | 26.3 |
| Language | C++ |
| Platform | macOS |
