Comments (3)
Yes that's it !
My issue is just when Unity create a xcodeproj from scratch. He creates a target "Tests" and I would remove it.
So I will do what you said when I have enough time to do it. Cause I think there is more thing than just delete some references.
I'll keep you in touch if I made some progress during the upcoming week. And maybe if I have some deep question on the code in mod_pbxproj (but it must be fine to understand)
from mod-pbxproj.
I took a quick look. It seems there is nothing to create or remove targets. I assumed the project will be already created with targets and i could do is modify them.
That being said, what you need to do is something similar to what it's done in the methods: get_build_phases
and get_target_by_name
.
Iterate over the elements until you find the target name you want to delete and then remove from the self.objects reference. Maybe some extra stuff needs to be deleted somewhere else.
If you manage to implement it feel free to open a PR i will check it and merge it after some testing
from mod-pbxproj.
I know this is ancient but was there ever a neat solution for this?
I've tried:
targets = project.objects.get_targets()
for target in targets:
if target.name in ['install', 'ZERO_CHECK']:
targets.remove(target)
or
del target
to no success
from mod-pbxproj.
Related Issues (20)
- again How to add one framework just want to build it output as a framework with my main proj HOT 2
- [BUG]When I use setup.py to install pbxproj module syntax error occured. HOT 1
- conda forge package HOT 2
- [FEAT] How to add sub-project into current project, but sub-project has two kinds of target type
- [BUG] This one project loads but doesn't save HOT 2
- Moving an existing group to another group HOT 2
- update flag HOT 1
- [BUG] Update multible Flags HOT 2
- [FEAT] Can I change setting on Build Settings > Signing HOT 1
- [FEAT] How do you get a flag value ? HOT 1
- [FEAT]Can I find my favorite books at will?
- Referencing files into UnityFramework
- File or folder association settings
- add_package [BUG]
- remove a file with fileID HOT 1
- [BUG] Local package XCLocalSwiftPackageReference is not getting parsed properly HOT 1
- [BUG] Build steps that have shell commands lose formatting when project is saved
- [FEAT] add flag with null value
- Cannot create subfolders HOT 2
- [BUG] Exception is thrown when finding `productRef` instead of `fileRef`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mod-pbxproj.