-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support :podspec
as alternative to :path
option
#135
Comments
If I'm understanding correctly, you'd like to use |
No, I would like to generate a workspace given a local podspec which has a dependency on a remote podspec which is not part of a repository. The use case is, that the kotlin cocoapods integration use pod gen to integrate pods into kotlin. And we want to use react-native which has these podspecs which are not part of a repository. At build time react-native is available on the local machine. However with |
Do you have any reference material on how the kotlin cocopaods integration is handled? I've never looked at how react native interfaces with CocoaPods before today, but it looks complicated. I see they're defining these dependencies with All that said, it is still unclear to me exactly what functionality you would need to accomplish your goals. The I'd be happy to take a look at a PR if this was something that you were interested in working on. |
Here is how pod gen is called in the kotlin build task: https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/AdvancedCocoapodsTasks.kt#L389-L397 Before that the podspec is generated here: https://github.com/JetBrains/kotlin/blob/5c3ce67648c2d5ca9e2a7de4460c6256625fd479/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/CocoapodsTasks.kt#L115-L156
Exactly. And because
Kotlin uses the Using the [pod gen podfile config options(]https://github.com/square/cocoapods-generate/blob/master/lib/cocoapods/generate/configuration.rb#L139-L141) is not an option for the kotlin integration, because it kotlin relies on pod gen to generate the podfile. I thinks what's needed is an option in |
Currently local a podspec can only be included using the
--local-sources
option which is a directory that may contain multiple podspec files for multiple pod dependencies. This option is used for local dependencies where the source is also local. However to include a library which itself does not have a podspec, a podspec can be created outside a spec repository and refrerenced in the podfile according to https://guides.cocoapods.org/syntax/podfile.html#pod.pod 'JSONKit', :podspec => 'https://example.com/JSONKit.podspec'
The
:podspec
option can also be a local path, however currentlypod gen
has no option to specify the:podspec
for a pod dependency.Often it is not required to use the
:podspec
, because the:path
option works for local podspecs as well. However, the installation process of:podspec
and:path
are different, which results in failures. For example the third party podspecs of react-native can not be included with the:path
option.The text was updated successfully, but these errors were encountered: