-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hoang lee
authored and
Hoang lee
committed
Mar 1, 2022
1 parent
0285413
commit afa0567
Showing
4 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#import the xcodeproj ruby gem | ||
require 'xcodeproj' | ||
require 'json' | ||
fileName = ARGV[0] | ||
#define the path to your .xcodeproj file | ||
project_path = 'vnf3/vnf3.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["vnf3"] | ||
#get the file reference for the file to add | ||
main_target = project.targets.first | ||
files = [] | ||
files[0] = group.new_file(fileName) | ||
#add the file reference to the projects first target | ||
main_target.add_resources(files) | ||
project.save |