Apparently utils/build-toolchain must fail on my mac. I can't find
any pkg output archive. Nor any directory structure that looks like:
du -h -d 3
308K./swift-2.2.1-SNAPSHOT-2016-04-23-a-osx-package.pkg/_CodeSignature
111M./swift-2.2.1-SNAPSHOT-2016-04-23-a-osx-package.pkg/System/Library
That's utils/build-toolchain.
The SDK that's needed is the actual OS X SDK that comes with Xcode. (It says
that in the error message.) This is not something that people are allowed to
distribute on their own; the destination computer will need to have either
Xcode or Apple's Command-Line Tools
Or better yet.
What is the command that is used to build the downloadable swift
packages for OSX?
I can go from there probably.
-tim
On 5/11/16, Tim Prepscius wrote:
> Also,
>
> So I build the thing, and I move over the swift directory to a
> computer without Xcode.
>
> I run bin/swift
> and ge
Also,
So I build the thing, and I move over the swift directory to a
computer without Xcode.
I run bin/swift
and get:
swift-macosx-x86_64 tim$ bin/swift
*** You are running Swift's integrated REPL, ***
*** intended for testing purposes only. ***
*** The full REPL is built as part of LL
Ok,
so when I build finally it:
du -h -d 1
3.7M./cmark-macosx-x86_64
81M./llbuild-macosx-x86_64
5.6G./lldb-macosx-x86_64
7.9G./llvm-macosx-x86_64
18M./ninja-build
8.4G./swift-macosx-x86_64
47M./swiftpm-macosx-x86_64
22G.
22 gigs is a bit much?
Even the 8.4gigs
Thank you,
Trying.
utils/build-toolchain local.swift tries to use ninja which fails
so I go to the swift and see "git clone
g...@github.com:ninja-build/ninja.git && cd ninja" ...
which fails
so I do:
git clone https://github.com/ninja-build/ninja.git
and then I do git checkout release
like it s
Hi, Tim. The build directory contains symlinks and such and therefore isn’t
really the best vehicle for distribution. There’s a build-toolchain script
inside swift/utils/ that should give you a self-contained directory, and more
generally there’s a notion of “install components” that can be used
Is there any way I can get "import Foundation" working on a machine
other than the machine I compiled with?
I notice that those "float.h" headers are within the llvm build,
however when I try to do -I of that directory it fails. (I tried as an
include as a framework as an include passed to the com
Ok, so building is working
with the following script:
more build-swift-script.sh
RELEASE=swift-2.2.1-RELEASE
sudo port install cmake ninja
mkdir apple-swift
cd apple-swift
git clone https://github.com/apple/swift.git
(cd swift && utils/update-checkout --clone)
for D in *; do
if [ -d "${D}" ]
This might be a bug in your tagging system:
compiler-rt
llbuild
swift-corelibs-foundation
swift-corelibs-libdispatch
swift-corelibs-xctest
swiftpm
are missing the tag
error: pathspec 'tags/swift-2.2.1-RELEASE' did not match any file(s)
known to git.
although they do have tags such as:
swiftpm tp
So far this seems to be working:
build-swift-script.sh
RELEASE=swift-2.2.1-RELEASE
mkdir apple-swift
cd apple-swift
git clone https://github.com/apple/swift.git
cd swift
utils/update-checkout --clone
for D in *; do
if [ -d "${D}" ]; then
echo "checkout $RELEASE of ${D}"
(cd ${D} && git
Ok download says it does not work
silver:swift tprepscius$ utils/update-checkout --clone
--- Cloning 'swift' ---
fatal: destination path 'swift' already exists and is not an empty directory.
utils/update-checkout: command terminated with a non-zero exit status
128, aborting
silver:swift tprepscius
Hmm actually that doesn't work at all:
--- Updating '/Users/tprepscius/Documents/Projects/swift' ---
First, rewinding head to replay your work on top of it...
Applying: [Build system] Add presets for Swift inside the LLDB tree.
Using index info to reconstruct a base tree...
M utils/build-pre
Cool.
Working on this now.
Out of curiosity:
Let's say I clone and checkout the 2.2.1 release tag
and then run the update-checkout util
git clone https://github.com/apple/swift.git
cd swift
git checkout tags/swift-2.2.1-RELEASE
./utils/update-checkout --clone
Will this update-checkout command
> On May 6, 2016, at 1:14 PM, Tim Prepscius via swift-users
> wrote:
>
> Greetings,
>
> Is it possible to build swift using Xcode, and then distribute swift
> without Xcode?
> Or, does there already is exist some link to swift on OS X which is
> not contained in Xcode?
>
> I need a swift comp
Greetings,
Is it possible to build swift using Xcode, and then distribute swift
without Xcode?
Or, does there already is exist some link to swift on OS X which is
not contained in Xcode?
I need a swift compiler/executable that will run on all versions of
MacOSX, not just the latest.
Thanks!
-ti
16 matches
Mail list logo