I have an XCode Workspace that builds a product as a universal binary for Intel and Apple Silicon.
On an Intel-based machine, I am attempting to import a Swift Package dependency by accessing a private git repository.
When I attempt to import my dependency into my code and build, I'm getting the following error:
Could not find module '<swift package name>' for target 'arm64-apple-macos'; found: x86_64, x86_64-apple-macos
The project has Standard Architectures set for the ARCHS
build setting and ONLY_ACTIVE_ARCH = NO
. When I switch ONLY_ACTIVE_ARCH = YES
, it builds fine.
Is there a way to instruct the compiler to build the swift package dependency as universal and resolve this issue?