Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
IdeaS0ft committed Sep 18, 2024
1 parent 1e9028e commit 37b84b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ def self.add_file_near_info_plist(project, file_path)
# Get the directory of the Info.plist file
info_plist_dir = File.dirname(info_plist_path)

# Construct the full target path for the new file
target_file_path = File.basename(file_path)
infoplist_group = find_group_by_path(project, [info_plist_dir])
infoplist_group = info_plist_dir === '.' ? project.main_group : find_group_by_path(project, [info_plist_dir])

# Check if a file with the same name already exists in the target directory
existing_file = infoplist_group.files.find { |f| f.path == target_file_path }
Expand Down

0 comments on commit 37b84b3

Please sign in to comment.