Skip to content

Commit

Permalink
Merge pull request #763 from CrazyFanFan/fix/cocoapods_12109
Browse files Browse the repository at this point in the history
Aligning platform information between XCFramework and Cocoapods.
  • Loading branch information
dnkoutso committed Nov 28, 2023
2 parents 1f4c2c5 + 730f9a7 commit cf9a87d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cocoapods-core/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def initialize(input, target = nil)
# Allow `Platform.new('macos')` to be equivalent to `Platform.macos`
if input == 'macos'
input = 'osx'
elsif input == 'xros'
# To address the issue of the mismatch between the platform: xros in the XCFramework and the platform:
# visionos in Cocoapods.
#
# This will ensure proper alignment between the platform information in the XCFramework and Cocoapods.
input = 'visionos'
end
@symbolic_name = input.to_sym
target = target[:deployment_target] if target.is_a?(Hash)
Expand Down

0 comments on commit cf9a87d

Please sign in to comment.