sdretu opened a new issue, #1679:
URL: https://github.com/apache/cordova-ios/issues/1679

   # Bug Report
   
   ## Problem
   
   We use Cordova-ios in an iOS app, the Package is imported via SPM.
   We need to update cordova-ios from version 8.0.0 to version 8.0.1 (at least) 
to fix an issue reported on 8.0.0
   
   When using cordova-ios through SPM, we need to specify the versions in 
format x.x.x, version 8.0.1 cannot be found by SPM.
   
   ### What is expected to happen?
   
   I set Package Cordova-ios to exact version 8.0.1, SPM finds the package from 
the repository, the package is updated.
   I set Package Cordova-ios to "Up to next Major version" with version 8.0.0, 
SPM resolves Cordova-ios to the latest version (8.1.1 at the time of writing 
this)
   
   ### What does actually happen?
   
   SPM cannot find Package version 8.0.1, nor 8.1.1
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   SPM uses tags to reference versions in the repositories, SPM expects the 
tags to have exact format x.x.x, the "core" of semver, without suffix, nor 
prefix.
   
   On Cordova-ios, version 8.0.0 commit 
[5d98b86](https://github.com/apache/cordova-ios/commit/5d98b865a0619ca64d0101dc2b0484ad7294be22)
 has two tags: "rel/8.0.0", "8.0.0", hence SPM can find that version through 
the tag 8.0.0.
   
   But when trying to update to 8.0.1, SPM looks for a tag "8.0.1" and cannot 
find it, because the repo only has a tag "rel/8.0.1"
   
   This inconsistent tagging prevents reliably using SPM's 
.upToNextMinor(from:) and .upToNextMajor(from:) to specify supported versions.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   -
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Xcode 26.6, iOS application development
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   cordova-ios 8.0.0 8.0.1 8.1.1
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to