-
Notifications
You must be signed in to change notification settings - Fork 40
Description
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.
If a podspec is available from another source outside of the library’s repository. Consider, for instance, a podspec available via HTTP:
pod 'JSONKit', :podspec => 'https://example.com/JSONKit.podspec'
The :podspec
option can also be a local path, however currently pod 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.