-
-
Notifications
You must be signed in to change notification settings - Fork 197
Support for CocoaPods #729
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
Comments
Based on some discussions, I've prepared the expected behavior of the CocoaPods support. Plugin prepareIf the plugin contains After all plugins are being prepared, {N} CLI will call Buildtns build command will respect the produced .xcworkspace for the current project and will build it. |
An alternative approach will be to "extend" the {
"name": "nativescript-http",
"version": "0.9",
"nativescript": {
"ios" : {
"pods" : {
"AFNetworking" : ">=2.0"
}
}
}
} The benefits of this will be that we will not need a separate file for defining the pods. The down side is that we cannot support complex pod files that have ruby code in them. Also we will have to transform the npm version notation to pod's one. |
My thought on this is that we should support whatever iOS developers are more comfortable with—which I'm guessing (and just guessing) is a My reasoning is that, IMO, only people with at least some iOS experience are going to be writing plugins that use Cocoa Pods, so we should be consistent with what they're comfortable with. Your average web developer doesn't know what a CocoaPod even is, and likely won't be jumping to create {N} plugins that use them. |
I found this list of OSS iOS apps. It appears that custom ruby code in a Podfile is relatively uncommon - I found them in less than 10 apps from the entire list. But pod commands like |
|
Thanks all for your input. We will be progressing with the dedicated podfile in the plugin strategy. |
How will this work for non-plugins, i.e. the main app? Will we keep a Podfile/Podfile.lock in App_Resources, or some-such? |
Hi @maknz, What is the use case to need |
Our app uses the UICKeyChain pod for secure storage on iOS. We keep this in |
Related issue: #826. |
Related issue: #831. |
No description provided.
The text was updated successfully, but these errors were encountered: