Skip to content

Commit

Permalink
fix: use real_path to find plist files is update_ats Cocoapod util
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszs committed Jan 11, 2024
1 parent 822bf52 commit 8a761ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ def save()
class PBXFileRefMock
attr_reader :name
attr_reader :path
attr_reader :real_path

def initialize(name)
@name = name
@path = name
@real_path = name
end
end

Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/scripts/cocoapods/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def self.get_plist_paths_from(user_project)

def self.update_ats_in_plist(plistPaths, parent)
plistPaths.each do |plistPath|
fullPlistPath = File.join(parent, plistPath.path)
fullPlistPath = plistPath.real_path
plist = Xcodeproj::Plist.read_from_path(fullPlistPath)
ats_configs = {
"NSAllowsArbitraryLoads" => false,
Expand Down

0 comments on commit 8a761ba

Please sign in to comment.