I have a couple of lines in my CMakeLists that copies preset files into the bundle like this:
if(IOS)
juce_add_bundle_resources_directory(MyApp_Standalone ../PresetsIOS)
juce_add_bundle_resources_directory(MyApp_AUv3 ../PresetsIOS)
endif()
At one point, I rearranged the folders and file structure in the presets folder and then noticed that when I ran my app, all the presets were duplicated. It looked like a combination of the original file structure and the new file structure. The only way to correct this was to do a Clean Build folder in Xcode.
It seems that juce_add_bundle_resources_directory()
doesn’t do a replace, but just some sort of simple file copy. If that’s the case, what’s the right way for this to get cleaned out at the start of a build?