GithubHelp home page GithubHelp logo

Comments (5)

kronenthaler avatar kronenthaler commented on August 26, 2024 1

Hi, thanks for the question. Before i can answer, please:

  1. Use the code blocks to see all the content of your snippet
  2. Write what is the code you are expecting or what is wrong with the snippet you are posting. Otherwise the snippet looks ok to me.
  3. What do you mean with "Title Description"

from mod-pbxproj.

kronenthaler avatar kronenthaler commented on August 26, 2024 1

Thanks, the documentation is incorrect.
It should be:

project.add_flags({'OTHER_LDFLAGS': ['-ObjC', '-all_load', '-fobjc-arc']})

from mod-pbxproj.

itenfay avatar itenfay commented on August 26, 2024

Hi,Thank you for your answer.

I know how to add the frameworks. My code blocks:

pbx_path =  "/Users/ajax/tzcq/Unity-iphone.xcodeproj/project.pbxproj"
project = XcodeProject.Load(pbx_path)
framework = project.get_or_create_group("Frameworks")
project.add_file_if_doesnt_exist("/Users/ajax/Desktop/xxx.framework", parent=framework)
project.save()

But I do not know to add the Embed Frameworks in PBXCopyFilesBuildPhase section.

The following contents was taken from the project.pbxproj.

/* Begin PBXCopyFilesBuildPhase section */
        96AABB551CC874F1000DF362 /* Embed Frameworks */ = {
            isa = PBXCopyFilesBuildPhase;
            buildActionMask = 2147483647;
            dstPath = "";
            dstSubfolderSpec = 10;
            files = (
                96AABB541CC874F1000DF362 /* xxx.framework in Embed Frameworks */,
            );
            name = "Embed Frameworks";
            runOnlyForDeploymentPostprocessing = 0;
        };
/* End PBXCopyFilesBuildPhase section */

How did I add the Embed Frameworks in PBXCopyFilesBuildPhase section?

Can you provide the interface or Instructions about adding the Embed Frameworks ?

from mod-pbxproj.

kronenthaler avatar kronenthaler commented on August 26, 2024

There is no direct function to do that at the moment. I haven't done it myself, but It can be achieved with the result of the add_file_if_doesnt_exist function and iterating over the project.objects dictionary.

I will mark this issue as an improvement to be done.

from mod-pbxproj.

itenfay avatar itenfay commented on August 26, 2024

Thanks!

By the way, I will feedback a question.

project.add_flags('OTHER_LDFLAGS', ['-ObjC', '-all_load', '-fobjc-arc'])

The flags can't be added to the project.pbxproj in the 1.3.0 version with this method. I don't know whether to improve the problem in the 1.3.1 version

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.