My project compiled fine but after upgrading to Xcode 11.4 it now fails to compile with this error for each of my frameworks:
Building for watchOS, but the linked framework 'MyFramework.framework' is building for iOS. You may need to configure 'MyFramework.framework' to build for watchOS.
I have 3 frameworks. Each have a watch version target which is already configured to use watchOS
as the base SDK.
I removed each framework and added them back, and it compiles fine now.
The
project.pbxproj
changes added:and
For each framework.
I also filed a bug report with Apple Feedback and they closed it saying I was able to fix it myself.