Lord-Kamina / SwiftDefaultApps

Replacement for RCDefaultApps, written in Swift.
Other
1.43k stars 62 forks source link

Compilation error: 'SwiftCLI' not found #78

Open soid opened 1 year ago

soid commented 1 year ago

I'm getting this error when trying to compile in XCode:

x-xcode-log://89332A3F-C0A5-4BAB-BBD2-CF3EAD1DBF62 product 'SwiftCLI' required by package 'swiftdefaultapps' target 'SWDA-CLI' not found.

Am I doing something wrong? It seems the Package file is fine and the dependency and the version is availble: .package(url: "https://github.com/Lord-Kamina/SwiftCLI", from: Version("2.0.3+swift5"))

barijaona commented 6 months ago

Encountering the same problem here, while trying to build an Apple Silicon version… Did you find a workaround ?

Lord-Kamina commented 6 months ago

Not sure if it's going to fix the issue but I just noticed I made a typo and wrote SWiftCLI on the package manifest.

barijaona commented 6 months ago

Not sure if it's going to fix the issue but I just noticed I made a typo and wrote SWiftCLI on the package manifest.

Yes, it's the cause. I managed to get a build by :

Lord-Kamina commented 6 months ago

should be fixed now.

barijaona commented 1 month ago

I confirm it's fixed. I'd suggest you release an universal build, as the latest available one is Intel only.

djeikyb commented 1 month ago

i would love a build that works for apple silicon. i am currently neolithically staring at xcode unsure of how to prod it into building this thing so i can convince safari to stop opening the mail app every time i hit cmd+shift+i 😅

this warning from brew install scared me off:

==> Caveats swiftdefaultappsprefpane is built for Intel macOS and so requires Rosetta 2 to be installed. You can install Rosetta 2 with: softwareupdate --install-rosetta --agree-to-license Note that it is very difficult to remove Rosetta 2 once it is installed.

djeikyb commented 1 month ago

for anyone else bumbling around it's rather critical to realize — ideally sooner than later — that there are submodules

git submodule init
git submodule update

after that, all i had to do was follow the build failure instructions to more or less disable signing in a couple places, including here:

image

oh and i also had to learn to find the build folder (product > show build folder in finder)