[SOLVED] FileChooser on iOS returning invalid file

After porting a JUCE app to iOS, it seems that file import is broken.

calling existsAsFile() on the returned File returns false.

This happens only with files outside the sandboxed application documents folder.

This is the fileChooser code being used:

fileChooser = std::make_unique<juce::FileChooser> ("Import", juce::SharedResourcePointer<ApplicationSettings>()->getMostRecentImportDirectory(), scalaFileExtension);
fileChooser->launchAsync (juce::FileBrowserComponent::openMode, ...);

Here are the relevant settings via CMake:

        DOCUMENT_BROWSER_ENABLED TRUE
        DOCUMENT_EXTENSIONS scl preset tuning
        FILE_SHARING_ENABLED TRUE
        ICLOUD_PERMISSIONS_ENABLED TRUE

Is there anything I might be missing?

Well its been a while since I worked on iOS JUCE apps.

I forgot you need to use getURLResults() instead of getResults()

Case closed.