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?