-
Notifications
You must be signed in to change notification settings - Fork 171
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
0.6.4 watchOS, tvOS, macOS support #72
base: master
Are you sure you want to change the base?
Conversation
Added watchOS, tvOS, macOS support.
Wow great work! Thanks for your contribution! I will take a look over everything and hopefully merge soon. |
@saoudrizwan Can you also update package.swift. // swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Disk",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Disk",
targets: ["Disk"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "Disk",
dependencies: []),
.testTarget(
name: "DiskTests",
dependencies: ["Disk"]),
]
) |
When I try to use your PR with CocoaPods in a tvOS project like this:
I get this error:
Using Cocoapods 1.8.3 |
@fl034 you need to tell CocoaPods to use the new podspec on my branch
If you just point to the branch, it is still going to attempt to use the default podspec, which does not include iOS support. https://github.com/craigrouse/Disk I hope this makes sense. Sorry to promote my own post, but you may find some useful hints in here: https://medium.com/@craig.rouse/10-tips-for-distributing-your-framework-via-cocoapods-ed8e63561c66 :) I constantly have to refer back to it myself when building new pods. |
First of all, thanks for your efforts. It's working great, but I had to embed it without CocoaPods. I followed your advice and downloaded your project, and embedded it via I guess this is also the case my approach in my first comment, since I specified your Repo where your changed podspec is present. When I look at Alamofire's podspec, they're doing this:
The docs also say here (https://guides.cocoapods.org/syntax/podspec.html#deployment_target)
I tried this approach and it's working with your code, replacing those lines in your podspec. |
Thanks @fl034! If you'd like to submit a PR to my branch, I'll gladly merge it. |
Thanks for the offer, but feel free to do it yourself. Would be more work to fork and PR than the actual change :D |
Any update about this PR ? 🙂 |
Thats because the owner of this package has decided to require a monthly subscription to get updates, https://gitroyalty.com/saoudrizwan/Disk |
@kylebrowning ive always been confused by this. it seems like when I've used this project (via Cocoapods) that I've always been able to get around this barrier? is this a SwiftPM-only thing? |
Yeah, you have to pin SwiftPM to the version or commit in which it was supported as open source and free. otherwise you'll get the route to subscriber version. With cocoa pods, the last free release remains in Cocoapods trunk. |
Thanks for clarifying. TIL 👍 |
@kylebrowning I'm NOW supporting the project, would you or anyone here be willing to try and help me test this branch? Each time I try to use I get the following error messages... |
If you’re supporting it ask the maintainers. |
@saoudrizwan 👀 ? |
No plans to merge this? |
Ill merge it on my fork if someone wants |
It would be really nice, are you also supporting SPM? |
@kylebrowning works like a charm, do you have any plans to maintain it? |
Sure |
@saoudrizwan can we get some love over here? |
Added watchOS, tvOS, macOS support.
Merged #66
Merged #53