Using binary search, I found a commit in the JUCE master branch, and since this commit, I have a crash when trying to use FileChooser in my iOS application
Commit a4ba0c1
committed on Oct 29
“FileChooser: Fix deprecation warnings for iOS 14”
To save some time trying different combinations, please can you let me know:
Did you resave your JUCE project after updating your JUCE version?
What iOS version(s) exhibit the crash?
What is your iOS deployment target version?
Do you see the crash with the native filechooser, or the JUCE filechooser?
Does the app crash immediately on opening, or after attempting to open the file chooser, or something else?
I checked out the commit you linked, then tested the DemoRunner’s dialogs demo on iOS 18.1 Simulator with both native and JUCE filechoosers, and with deployment targets of iOS 12 and iOS 18, and those combinations seem to work as expected. So, I suspect that either the problem is only evident on older iOS versions, or maybe the project needs to be resaved.
I’m unable to repro the issue in the DemoRunner with that setup.
Note that the earliest supported iOS deployment target for JUCE 8 is iOS 12.
Please try running the DemoRunner and check whether that crashes. If the DemoRunner works as expected, then perhaps you can check for differences between your code and the code in the DialogsDemo.
Yes, I also found out what the issue is with the wildcard, but I haven’t figured it out completely yet.
If I use something like “.wav;.aiff;*.mp3”, everything works fine, but as soon as I add one or two more file types, it crashes.