How to create universal executables via Swift Package Manager

Hi, i have one problem with creating universal libraries via Swift Package Manager. I am trying do it with next command:

swift build -c release --arch arm64 --arch x86_64 --package-path "package-path" -Xcc -DFUSE_USE_VERSION=26 -Xcc -D_FILE_OFFSET_BITS=64 -Xswiftc -I"headers-include-path" -Xlinker -L"linker-path"

I get errors related to unfound header files. Seems build options don't applied. But if i execute separately with --arch arm64 or --arch x86_64, it works. May be anyone know how to fix it?

Terms of Service

Privacy Policy

Cookie Policy