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
How to declare Cocoapods-art dependency in podspec #8830
Comments
You cannot. It will have to be on installation instructions for your pod. I could see a DSL to support some "required_plugins" but I dont think it will be implemented anytime soon. |
Feel free to provide a proposal and attempt to implement this! See other RFCs like this one #8191 |
@dnkoutso Thanks, if I have time i'll look into it. Question though, without this private repo my pod doesn't compile when doing pod lib lint. Can I still create a Cocoapod for my wrapper or is it impossible? |
I think your pod must have instructions to include this repo via the plugin in order for it to function. |
This issue will remain open but will close in a few days if there is no progress. |
I know I've added it to the instructions but how do I distribute this pod when I can't get through the pod lib lint since it doesn't compile without that dependency... Or might I be doing something wrong? |
hm true you cannot do that there is no plugins support for |
|
@segiddins I know for the Podfile this works :) but this still doesn't solve the issue regarding pod lib lint which fails because the dependency on my private cocoapod-art plugin isn't there. Might need to rethink if a pod is the best solution for this. |
If the Podspec is released as ruby, you could use code to determine if the plugin is set up in the current podfile and fail elegantly with a message. This wouldn't work if you publish it via trunk though, as it only uses JSON Podspecs.
|
I do not think we will be doing any changes here. You can write Ruby for a private repo as @orta said but you cannot use it for trunk since its JSON. Closing for now as I do not suspect we will do anything here. |
|
Report
What did you do?
I tried to setup a private Cocoapod which contains a wrapper for a Cocoapod installed via Cocoapods-art. So I need to add the Cocoapods-art as a dependency in my podspec file
What did you expect to happen?
That I could add the Cocoapods-art plugin + source to the podspec.
What happened instead?
Linter threw an error that there is no plugin method in podspec.
CocoaPods Environment
/Users/user/.cocoapods/repos-art/ios-keycore/.artpodrc
Stack
Installation Source
Plugins
The text was updated successfully, but these errors were encountered: