3
Я пытаюсь создать инструмент командной строки на linux, который использует Foundation. Но я бегу в ошибку, потому что я не могу найти решение:Swift на Linux: -static-stdlib не удается найти -lFoundation
swiftc -static-stdlib Sources/main.swift Sources/array.swift Sources/check.swift
/usr/bin/ld.gold: error: cannot find -lFoundation
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TMV10Foundation12CharacterSet'
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TWPV10Foundation12CharacterSets10SetAlgebraS_'
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TFE10FoundationSS10componentsfT11separatedByVS_12CharacterSet_GSaSS_'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Знает ли кто, как построить быстрый проект статический?
hm, мне нужны некоторые материалы Foundation на массивах. Я обнаружил, что: https://github.com/apple/swift-corelibs-foundation/, возможно, стоит попробовать. –
Фонд определенно доступен на linux. – Alexander