Bug: weak linked frameworks are not properly propagated to all targets

Hi there,

I’ve discovered that macOS/iOS frameworks that should be marked as Optional don’t always appear as such when using the Projucer.

To repro, create a basic audio plugin project for iOS and enable AUv3 and Standalone exporters, then generate and open the Xcode project file.

If you navigate to the Project Settings > AUv3 target > Build Phases > Link Binary With Libraries section, you should see this:

Now navigate to the same section, but this time for the Standalone target:

As a result, the app will crash at startup on iOS devices running iOS < 14.0.

With this commit, the UniformTypeIdentifiers framework was added to the juce_gui_basics module as Optional (weak):

But unfortunately the Projucer marks it as Required in the Standalone target.

This issue was encountered with the last JUCE 8 version, but I was also able to reproduce it with JUCE 9.0.1.

Thank you for reading!

Thank you for reporting this issue. A fix is now out on develop

Awesome!

Thank you for the fix :wink: