WalletKit icon indicating copy to clipboard operation
WalletKit copied to clipboard

Invalid Manifest Format

Open simonmcl opened this issue 3 years ago • 5 comments
trafficstars

Tried importing this library into a package to experiment with, got this error:

invalidManifestFormat("\'./Sources/CryptoCore\' is not a valid path for path-based dependencies; use relative or absolute path instead.", diagnosticFile: nil) in https://github.com/KevinVitale/WalletKit

simonmcl avatar Feb 08 '22 12:02 simonmcl

Thanks for checking out the repo, @simonmcl. Can't reproduce this, unfortunately

Here's output from a checkout I just did; the project built & tested w/o issues:

➜  Misc git clone [email protected]:KevinVitale/WalletKit.git
Cloning into 'WalletKit'...
remote: Enumerating objects: 508, done.
remote: Counting objects: 100% (508/508), done.
remote: Compressing objects: 100% (282/282), done.
remote: Total 508 (delta 275), reused 421 (delta 203), pack-reused 0
Receiving objects: 100% (508/508), 389.08 KiB | 926.00 KiB/s, done.
Resolving deltas: 100% (275/275), done.
➜  Misc cd WalletKit 
➜  WalletKit git:(master) swift build
Fetching https://github.com/apple/swift-crypto.git from cache
Fetched https://github.com/apple/swift-crypto.git (0.82s)
Fetching https://github.com/attaswift/BigInt.git from cache
Fetched https://github.com/attaswift/BigInt.git (0.24s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.3.0 (0.39s)
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.3.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at main
[534/534] Build complete!
➜  WalletKit git:(master) swift test
[10/10] Build complete!
Test Suite 'All tests' started at 2022-02-08 11:06:09.360
[ ...tests...]
[ ....not....]
[ ...shown...]
Test Suite 'All tests' passed at 2022-02-08 11:06:12.026.
	 Executed 24 tests, with 0 failures (0 unexpected) in 2.664 (2.666) seconds
➜  WalletKit git:(master) 

Running xcodebuild -version on my machine outputs:

Xcode 13.2.1
Build version 13C100

Still, not sure what to make of the error. Can you share more details about your host and build environment?

KevinVitale avatar Feb 08 '22 16:02 KevinVitale

@KevinVitale no, when importing to a package. I'm making a swift package, if I add this to the list of dependencies and click save, SPM fails with the above error

simonmcl avatar Feb 08 '22 16:02 simonmcl

@simonmcl I see what you mean. I want to fix this; however, it may be a couple more days before I can dedicate more time to the issue.

In the meantime, you can clone the repo along side your package, and important it with a relative path. Not ideal, but should work while you play around with the code.

You can see an example of this with the WalletKitCLI/Package.swift#L16.

This issue will remain open for now.

KevinVitale avatar Feb 08 '22 16:02 KevinVitale

I get the same error, using Xcode 13.3 (13E113) on macOS Monterey 12.3.1 (21E258)

// swift-tools-version: 5.6
....
    dependencies: [
		.package(url: "https://github.com/KevinVitale/WalletKit.git", exact: "0.0.3")
    ],
...
         dependencies: [
		"WalletKit"
	]),

Sajjon avatar May 07 '22 08:05 Sajjon

make it work only with two forks 😄

astrokin avatar Jun 06 '22 17:06 astrokin