How do you tell Xcode where each version of a framework is, for each target platform?

I have three builds of the same framework: one for iOS, one for the simulator, and one for Mac OS.

I do not have the framework source.

I can't find where you specify the path to the correct version of a framework for each target platform. How do you provide the linker with the path to the correct version of a framework for each target platform (iOS, simulator, and now Mac)?

I can't make separate projects, because to build an iOS app for Mac using Catalyst, you have to enable the iPad as a target at the same time as the Mac.

I thought Xcode's General page for the target, under "Frameworks, Libraries, and Embedded Content" looked promising. Next to each entry in the frameworks list, there's a drop-down that lets you specify platforms. But it won't let you add two frameworks with the same name.

So I gave the Mac version a different name... but Xcode complains that it can't find it. But right-clicking on it in the frameworks list and saying "Reveal in Finder" goes right to it. 😡
Your best bet here is probably to build an XCFramework. You should be able to create an XCFramework with the existing binary frameworks you have, and then add it to your project. Xcode will then extract the appropriate framework from the each target when it builds them. XCFramework is discussed in the 2019 WWDC Session Binary Frameworks in Swift.
How do you tell Xcode where each version of a framework is, for each target platform?
 
 
Q