Closed erkenberg closed 9 months ago
Fixed and released to 4.13.0
Awesome, that was so fast I didn't even see it yesterday. Very cool!
I tested it and Installing (And building) works fine now, but I noticed one point that could be improved:
Using https://github.com/CocoaPods/Specs.git as source seems to clones the complete CocoaPods spec repo (around 3.8 GB) which takes quite some time and 99% of the stuff is usually not needed.
According to https://blog.cocoapods.org/CocoaPods-1.8.0-beta/ CocoaPods 1.8 added a new way to prevent this:
With 1.8, CocoaPods no longer requires cloning the now huge master specs repo in order to function and users may integrate their projects with CocoaPods almost instantly.
This works by simply using the CDN url instead: https://cdn.cocoapods.org/
, which I also saw from another cordova plugin we use.
I tested it locally by replacing the URL from the 4.13.0
release with the CDN URL and voilá, it no longer clones the complete spec repo but uses the pods already existing on my machine from earlier builds (or would only download the required parts for this plugins if not already downloaded).
I think this would be a nice improvement.
Currently cloning the complete CocoaPods spec repo is:
[!] Found multiple specifications for ...
during install, as the build finds the spec from both the partly downloaded specs (e.g. from other plugins) as well as from the complete spec repo
Thanks. it will be done in v4.13.1
.
It goes like this?
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/> // <----------------------
</config>
.
.
.
</podspec>
Thanks again fort the quick response, yes, this is exactly how i tested it locally 👍
v4.13.1
is released. Thanks.
Thank you very much, works perfectly 👍
Your Environment
cordova -v
): 12.0.0 (cordova-lib@12.0.1)cordova platform ls
): ios 7.0.0#ready
: install time failure, not on device (so not relevant)Expected Behavior
cordova prepare ios
successfully prepares the build and inlcudes the plugin without errorActual Behavior
cordova prepare ios
results in an error:Steps to Reproduce
cordova-ios
7.0.0cordova prepare ios
Context
cordova-ios
7.0.0 was released a few days ago and we wanted to update to it. The relevant breaking change seems to be :From what I see, the issue is likely in the plugin.xml, where
<framework type="podspec">
is no longer supported.