GithubHelp home page GithubHelp logo

Comments (3)

liszto avatar liszto commented on September 26, 2024 1

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.

kronenthaler avatar kronenthaler commented on September 26, 2024

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.

jakemumu avatar jakemumu commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.