Re: [swift-users] Guide on how to use Swift Package Manager

2016-08-13 Thread Ankit Agarwal via swift-users
There has been some progress towards better documentation, but there is still a lot to be done. Here are some current references (which might need updates..) https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md#build-an-executable https://swift.org/package-manager/#exam

Re: [swift-users] SPM: Subfolders in a Module

2016-09-15 Thread Ankit Agarwal via swift-users
On Fri, Sep 16, 2016 at 12:21 AM, Toni Suter via swift-users < swift-users@swift.org> wrote: > Hi everyone, > > Let's assume there's a Swift package with the following Layout: > > MyPackage/ > ├── Package.swift > └── Sources > └── MyModule > ├── SubFolder > │ └── MyClass.swif

Re: [swift-users] SwiftPM: How to verify that PKG_CONFIG_PATH is being used

2016-09-29 Thread Ankit Agarwal via swift-users
Hi, SwiftPM finds the first matching .pc file in the list of search paths, unfortunately the environment variable PKG_CONFIG_PATH was last in the list. It was corrected in this commit: https://github.com/apple/swift-package-manager/commit/ac0479653032ded2efa1d71ab290d5b8d66c0e82 Can you try with a

Re: [swift-users] Swift Package Manager questions

2016-10-17 Thread Ankit Agarwal via swift-users
Hi, Currently in Swift 3 release of SwiftPM, you cannot override this setting. A proper solution to this problem is yet to be built in SwiftPM however in the mean time this patch was landed to allow overrides by passing custom args: https://github.com/apple/swift-package-manager/pull/715 It is ava

Re: [swift-users] Monorepo workflow using SPM

2016-11-03 Thread Ankit Agarwal via swift-users
+swift-build-dev Not right now but we're considering adding support for multiple packages in a repository. It would be good if you can explain your requirements/features/flow are you looking for. On Friday 4 November 2016, Georgios Moschovitis via swift-users < swift-users@swift.org> wrote: > Th

Re: [swift-users] question about swift and c callbacks

2017-01-05 Thread Ankit Agarwal via swift-users
I simplified your example package and posted a bug report here: https://bugs.swift.org/browse/SR-3556 On Thu, Jan 5, 2017 at 9:59 PM, Yang Yang via swift-users < swift-users@swift.org> wrote: > sorry, i made mistake on compiling. It still report the same link error. > > Yang > > On Wed, Jan 4, 20

Re: [swift-users] Debugging XCTests on Linux

2017-01-05 Thread Ankit Agarwal via swift-users
Using swift module in REPL: Toolchain: January 4, 2017 Platform: Ubuntu 16.04 Add this at end of Package.swift: ``` products += [Product(name: "Result", type: .Library(.Dynamic), modules: "Result")] ``` $ swift build $ swift -I .build/debug -L .build/debug -lResult -I /usr/lib/clang/3.8/includ

Re: [swift-users] Debugging XCTests on Linux

2017-01-06 Thread Ankit Agarwal via swift-users
Might be, please file a JIRA with a minimal test case! On Fri, Jan 6, 2017 at 3:11 PM, Robert Atkins < ratkins+swift-us...@fastmail.fm> wrote: > On Thu, 5 Jan 2017, at 18:13, Ankit Agarwal wrote: > > Using swift module in REPL: > > > [...] > > $ swift build > $ swift -I .build/debug -L .build/deb

Re: [swift-users] Debugging XCTests on Linux

2017-01-06 Thread Ankit Agarwal via swift-users
Thats weird, you should be able to import Foundation from the toolchain On Fri, Jan 6, 2017 at 4:28 PM, Robert Atkins < ratkins+swift-us...@fastmail.fm> wrote: > On Fri, 6 Jan 2017, at 09:45, Ankit Agarwal wrote: > > Might be, please file a JIRA with a minimal test case! > > > As a first step I'm

Re: [swift-users] Debugging XCTests on Linux

2017-01-06 Thread Ankit Agarwal via swift-users
Yes you should be able to import Foundation in REPL using the latest toolchain on linux. FWIW I am getting same error you are from latest toolchain: root@4027f71e87ff:/swiftpm# swift -I .build/debug -L .build/debug -lResult -I /usr/lib/clang/3.8/include Welcome to Swift version 3.1-dev (LLVM c3e05

Re: [swift-users] package graphroot error

2017-10-11 Thread Ankit Agarwal via swift-users
Hey, There is no command called swift tools in the official Swift snapshots. This sounds like a question for swiftenv project. On Sun, Oct 1, 2017 at 10:28 AM, Muhammad Tahir Vali via swift-users < swift-users@swift.org> wrote: > Hello, > > I've updated to swift 4.0 and downloaded a CL tool swif

Re: [swift-users] [swift-dev] how to write package.swift if i want to use dependency file in local?

2016-01-06 Thread Ankit Agarwal via swift-users
I am assuming by downloaded you meant Downloaded the zip from github. Suppose you have all three downloaded side by side some-dir ├── PlayingCard ├── FisherYates └── DeckOfPlayingCards since you downloaded as a zip and not cloned these directories will not be under git version control anymore. p

Re: [swift-users] Swift Build in Xcode 7.3

2016-04-06 Thread Ankit Agarwal via swift-users
swift build is not included in swift 2.2, it'll be released with swift 3 You can grab the Trunk development (master) snapshots from https://swift.org/download/#snapshots On Wed, Apr 6, 2016 at 12:54 PM, Nikhil Pagidala via swift-users < swift-users@swift.org> wrote: > Hello All, > > I am unable t