-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestRubyFile.rb
More file actions
18 lines (18 loc) · 733 Bytes
/
Copy pathTestRubyFile.rb
File metadata and controls
18 lines (18 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import the xcodeproj ruby gem
require 'xcodeproj'
#define the path to your .xcodeproj file
project_path = 'MSAL/MSAL.xcodeproj'
#open the xcode project
project = Xcodeproj::Project.open(project_path)
#find the group on which you want to add the file
group = project.main_group['test/automation']
#get the file reference for the file to add
file = group.new_file('conf.json')
#add the file reference to the projects first target
project.targets.each do |target|
if target.name == "MultiAppiOSTests" || target.name == "InteractiveiOSTests" || target.name == "MSAL iOS Native Auth E2E Tests" || target.name == "MSAL Mac Native Auth E2E Tests"
target.add_resources([file])
end
end
#finally, save the project
project.save