swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.7k stars 1.33k forks source link

My custom SPM force me to use Rosetta destinations #7890

Open a7maad-ayman opened 3 weeks ago

a7maad-ayman commented 3 weeks ago

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

Description

Hi there,

When I add my custom SPM to my project, it doesn't run and gives me the following error:

Error Screenshot

It also forces me to use Rosetta. How can I resolve this?

Expected behavior

It should be universal and run for arm64 too.

Actual behavior

When I add my custom SPM to my project, it doesn't run and It also forces me to use Rosetta.

Steps to reproduce

No response

Swift Package Manager version/commit hash

5.10

Swift & OS version (output of swift --version ; uname -a)

xcode : 15 swift: 5.10 swift-tools-version : 5.8

dschaefer2 commented 3 weeks ago

Do you have steps to reproduce with swift command line tools? It looks like you were using Xcode?

a7maad-ayman commented 3 weeks ago

What difference does it make? We recently created a lot of SPMs in both ways. How does the way of creating them affect anything?

dschaefer2 commented 3 weeks ago

Swift package manager, i.e. the Swift command line tools, does not have support for building universal binaries at this time. This repo is just for those tools.