Comments (6)
I forked the repo and removed the submodule and the "Test Files" folder from the project and it seems to resolve this problem. I don't know why this would be the case because I believe SPM supports submodules, but none the less it fixes the issue I was seeing.
I haven't gotten to test functionality yet to see if anything is broken as a result, but wanted to give the update.
from swcompression.
Hi,
What you are experiencing is the weird relationship between SPM and Git LFS. I use Git LFS to store all the example files that are used by tests. I've put them into a separate git submodule exactly because I've tried to solve this problem. I was hoping that it would work since it seemed to me that SPM kinda ignores submodules (at least, at the time when I created the submodule). Apparently, it didn't work.
Somewhat easy solution that will fix the issue for you is to install Git LFS. Ideally, I would like to find a way to somehow prevent SPM from downloading the submodule, or, at least from trying to download git-lfs'd files. Currently, I am not aware of any methods to do so.
from swcompression.
Hi @tsolomko ,
Thanks for getting back to me. I tracked this down a little bit further. It appears that if you use SPM from the command line everything works as planned. I was actually seeing the error when using SPM from the new Xcode 11 betas.
As I said, everything is working when I use Swift/SPM from terminal, so it may be worth adding a small note about this in the project ReadMe.
Thanks again!
from swcompression.
All,
I can confirm that SWCompression could be managed by the new XCode-Beta 11.0 Beta 5 flawlessly.
The only need is to link git-lfs executable to the Xcode-beta.app.
See https://stackoverflow.com/questions/57055604/xcode-11-swift-package-manager-unable-resolve-packages
Initially, you need to install git-lfs to your system. I use brew
.
brew install git-lfs
from swcompression.
@vookimedlo are you certain you get Xcode SPM working with git-lfs files ?
from swcompression.
@quentinfasquel
XCode 11 beta didn't have the git-lfs executable bundled inside its app package. So, the solution I described worked for me at that time. With this in place, the SWCompression worked without any issue.
from swcompression.
Related Issues (20)
- [CRASH] LittleEndianByteReader.swift:33:20 HOT 2
- Progress when decompression is needed HOT 1
- Memory issues when working with larger files HOT 8
- [CRASH] MsbBitReader.bit() HOT 4
- AR Format Support HOT 7
- Can Gzip unarchive return Member? HOT 1
- GzipArchive.unarchive wrongMagic for short data HOT 1
- Brotli Support? HOT 2
- Symlinks in tarballs are created with absolute paths HOT 3
- BZip2Error.wrongCRC when decompressing HOT 2
- Support File I/O for large archives and resource-constrained environments
- Error when decompressing a certain 7z file HOT 2
- Some zip files can't be extracted HOT 2
- LZ4 format not compatible? HOT 8
- Compiling for watchOS fails HOT 1
- LZ4 decompress speed HOT 10
- Support splitting zips into multiple files
- Is there a way to extract a single file from a 7z compressed archive? HOT 4
- LZFSE Support
- Please update BitByteData dependency HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swcompression.