Skip to content

Commit

Permalink
Aligning platform information between XCFramework and Cocoapods for x…
Browse files Browse the repository at this point in the history
…ros and visionos.
  • Loading branch information
kongkaikai committed Nov 21, 2023
1 parent 1f4c2c5 commit 730f9a7
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 730f9a7

Please sign in to comment.