Swift development workflow

Hi,
My "swift --version" is:
"Apple Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift
42591f7cba)
Target: x86_64-apple-macosx10.9 "

I made change on: "swiftpm/Sources/swift-build/main.swift" which change s
line 106 to: print("Apple Swift Package Manager 0.2")

I ran "swift/utils/build-script --swiftpm --llbuild" successfully but when
I ran command: "swift build --version"
I still got: Apple Swift Package Manager 0.1

Can you share the workflow for making changes, debug swiftpm project?

Thanks,
Phat Le

Hi,
My "swift --version" is:
"Apple Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 42591f7cba)
Target: x86_64-apple-macosx10.9 "

I made change on: "swiftpm/Sources/swift-build/main.swift" which change s line 106 to: print("Apple Swift Package Manager 0.2")

I ran "swift/utils/build-script --swiftpm --llbuild" successfully but when I ran command: "swift build --version"
I still got: Apple Swift Package Manager 0.1

That script builds a development version of the package manager, it doesn't replace your existing tools (usually not what you want during development).

You can find the built product at:
  .../swift-project/build/Ninja-ReleaseAssert/swiftpm-macosx-x86_64/debug/swift-build
(or similar, depending on the exact options you used).

You can run it by executing that file directly (in place of "swift build").

For making changes, you can also do development in a test driven development fashion. One easy way is by using the bootstrap script directly and passing "--test". You can find information on using the bootstrap script here:
  https://github.com/apple/swift-package-manager/blob/master/README.md#development
or you can find its invocation from the output of the "build-swift" script.

We do not currently have a convenient end-to-end build process that will build everything into a new toolchain that you can then use exactly like the one you downloaded.

- Daniel

ยทยทยท

On Jan 21, 2016, at 7:17 AM, Phat le tan via swift-build-dev <swift-build-dev@swift.org> wrote:

Can you share the workflow for making changes, debug swiftpm project?

Thanks,
Phat Le

_______________________________________________
swift-build-dev mailing list
swift-build-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-build-dev