Closed tonka3000 closed 10 months ago
You are running in the wrong environment. As the instructions state, run from a VS developer cmd shell. /usr/bin/link would onky appear if you are using bash as the shell.
Thanks, that worked. It is strange that cmake presets don't bootstrap the environment like it is possible with vscode in non cmake-preset cases, but this seems to be intentional from cmake.
I missing the instructions because they are in the swift package manager section. Would you accept a PR where I would update the README in that regard for the cmake section? Just in case somebody else have the same issue.
@tonka3000 Absolutely!
@compnerd I add #769 with the update in the Readme
One thing I hit with 5.9 when I used SPM to build.
It always throw an error
error: 'swift-win32': package 'package@swift-5.9.swift' is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version: 5.9' to specify the current tools version
when I type swift build --product UICatalog
.
I was only able to fix it by copy Package@swift-5.4.swift
to Package@swift-5.9.swift
and change the swift-tools-version to 5.9
. I also need add build extra target for CoreAnimation
back as it was done in Package.swift
, otherwise I always get an error when it tried to import CoreAnimation
. I have a full impl. in my fork here
Maybe there are better ways to do that, but I was my first time playing with swift and the redirect package.swift files seems not to allow the declaration of another swift-tools-version.
Hmm, I think that something weird is going on. SPM should be using Package.swift
, which does indicate swift-tools-version:5.7. The redirection is something very recent that I introduced so that I can start ripping out some of the complexity in the build rules.
The intent is to have a version for the older releases and have the latest release use Package.swift
.
This does sound like a separate issue, perhaps we should create a new issue to track and discuss it?
This does sound like a separate issue, perhaps we should create a new issue to track and discuss it?
See #771
I tried to build the project with the 5.9.1 build from https://www.swift.org/download but I always get the same error with CoreAnimation.
Any idea what is wrong here? Static vs dynamic build?