- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Fixes for SPM #512
🐛 Fixes for SPM #512
Conversation
Had a few more issues with Package.swift and some swift code in Xcode: 1. ZipArchive only supports iOS ≥15.5 2. Library Name needs to match package name: "CapgoCapacitorUpdater" (and target attr references target bellow). 3. Needs to support more versions than just capacitor-swift-pm "6.0.0", instead: "^6.0.0". 4. Import "ZipArchive" seems to import SSZipArchive, removed second camImport declaration. 5. UIKit import missing, required for UIDevice. 6. Some Syntax issues with Version not being available as string, probably due to newer platform version. I've tested it and it works in my project.
Coming from #510 |
We will not upgrade the version minimum ios 13+, we have to follow capacitor one, so better to lock the version of ZipArchive to a version who doesn’t require the bump |
I just realized all version below 2.5 are not available in spm, so we can’t do anything for now for this |
I did raise issue, our ask is quite nonsense and i would understand the creator of the lib refuse. |
What if we replace ZipArchive with a different Swift package that can zip/unzip? |
ZipArchive has been used since day one in this plugin, we cannot change that so easily. |
I just tried removing it (replaced it with Zip) and I only had to replace a single call to ZipArchive in order to compile the package. I could open a PR for that, based on @abegehr 's branch if you want @riderx |
@marius-se I wish that to be so easy. Changing a lib used by millions of devices daily has a huge impact. I will do some more research as well |
I think i found the solution to force the version in SPM |
pushed |
Please try 6.12.1 |
Sorry, I found another issue, try 6.12.3 |
awesome, works! thanks @riderx EDIT: nevermind, still getting an issue: |
I've updated this PR to include fixes from 6.12.3:
@riderx, please let me know if you agree with those fixes. |
For the package version of capacitor swift pm we should follow the template: |
Can you fix it and i accept your pr? |
yes, doing now, thanks @riderx |
|
🙌 |
Had a few more issues with Package.swift and some swift code in Xcode:
I've tested it and it works in my project.
Some screenshots of the errors, pre-fix: