CocoaPods / CocoaPods/Xcodeproj
Creating multiple targets
- Dominant language
- Ruby
- Stars
- 2.4k
- Forks
- 488
- PR merge metrics
- No merged PRs in 30d
Description
I know it can be silly , but I'm stuck almost 2 weeks on it ... Couldn't find any answer , maybe I'm just stupid ...
I have one project with multiple targets , I can duplicated the targets , rename it and create group with some files
label_group = project.main_group.find_subpath('WhiteLabel/'+target.name, true);
project['WhiteLabel/' + target.name].new_file('480.json');
project['WhiteLabel/' + target.name].new_file( target.name+'-Info.plist');
project['WhiteLabel/' + target.name].new_file(target.name+'.xcassets');
But it not create a real folder with real files , just references ...
Anyone can tell me , what I am doing wrong , or if there is a better way to do it ?
Thanks a million !
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the project.main_group.find_subpath and new_file calls shown in the issue, then trace how Xcodeproj represents groups, file references, and physical files. Confirm whether the API supports creating real folders and files rather than references; done means documenting or implementing a working approach for multiple targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100