Removing dependencies for visionOS

Hi, My iOS app includes 4 dependencies added through SPM, and a xcframework file from an external source. When I build the iOS app for the visionOS simulator, it works fine, and it runs in the compatibility mode. When I try to build for the new visionOS SDK, I get build errors related to these external dependencies, like "When building for visionOS Simulator, no library for this platform was found ..."

How do I remove these dependencies for just the visionOS SDK? Any help would be appreciated. Thanks.

Accepted Answer

Can you alter the filters under the Frameworks, Libraries, and Embedded Content section in your Target's settings under the General tab?

Removing dependencies for visionOS
 
 
Q