Created
March 16, 2013 17:05
-
-
Save Seasons7/5177321 to your computer and use it in GitHub Desktop.
add file in subgroup
This file contains hidden or 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
| from mod_pbxproj import XcodeProject | |
| if __name__ == '__main__': | |
| proj = XcodeProject.Load('test01.xcodeproj/project.pbxproj') | |
| test01 = proj.get_or_create_group("test01") | |
| resources = proj.get_or_create_group("Resources", parent=test01) | |
| proj.add_file("hoge/a.txt", parent=resources) | |
| proj.backup() | |
| proj.save() |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hoge/a.txt is local file.
like this.
test01.xcodeproj
+test01
+hoge
addFile.py