Remove App Clip target on Catalyst builds only?

I'd like to continue catalyst development, but I've added an AppClip target to my project. It appears that Xcode is complaining that the framework being embedded into the AppClip is getting built for Catalyst, when it would prefer "iOS".

Code Block
error: Building for iOS, but the embedded framework 'ViewKit.framework' is building for Mac Catalyst. You may need to configure 'ViewKit.framework' to build for iOS. (in target 'Clip' from project 'overview')


Since AppClips can not run on Catalyst is there a configuration spot in Xcode build settings to conditionally remove a target?

The clip is already "unchecked" for mac on the general page's deployment info checkboxes.
Answered by J0hn in 636760022
Thank you, fixed.

I navigated to the general tab of my main-app target.
I observed that the "Clip" target was already set to iOS only.
I clicked "iOS" and got the dropdown.
I reselected "iOS".

This added a single line to my project file for the Clip target:
platformFilter = ios;

Not sure why it was "Stuck" without that filter, but I'm over this hump now. Thank you.
Please see the Go Beyond the Checkbox in Creating a Mac Version of Your iPad App for instructions on how to configure the framework to build for iOS.
Accepted Answer
Thank you, fixed.

I navigated to the general tab of my main-app target.
I observed that the "Clip" target was already set to iOS only.
I clicked "iOS" and got the dropdown.
I reselected "iOS".

This added a single line to my project file for the Clip target:
platformFilter = ios;

Not sure why it was "Stuck" without that filter, but I'm over this hump now. Thank you.
Remove App Clip target on Catalyst builds only?
 
 
Q