Giter VIP home page Giter VIP logo

Comments (8)

AliSoftware avatar AliSoftware commented on June 15, 2024

What about User Defaults instead? (Just a suggestion, not sure what's really best)

from cocoapods-app.

alloy avatar alloy commented on June 15, 2024

@AliSoftware That is an interesting thought! But let’s keep it simple with an env variable for now, until people really start requesting a persistent way to do this.

from cocoapods-app.

AliSoftware avatar AliSoftware commented on June 15, 2024

Problem with ENV variables is what I explained in Slack the other day: If one want to add a "Script Build Phase" that uses CP to its Xcode project, which is shared among coworkers (where everyone is supposed to have CocoaPods installed on their machine), then per-machine environment variables are not that easy to insert into Xcode's Script Build Phases.

from cocoapods-app.

neonichu avatar neonichu commented on June 15, 2024

Everyone should use the same version of :cp:, though, so it makes sense to hard-code it in the script phase.

from cocoapods-app.

AliSoftware avatar AliSoftware commented on June 15, 2024

@neonichu Except if some prefer to install it in ~/Applications instead of /Applications for example, or if one want to use the gem-installed version and have a different $GEM_HOME that the default one, etc…

from cocoapods-app.

alloy avatar alloy commented on June 15, 2024

@AliSoftware In our case, assuming that you would call the bundle the same (e.g. CocoaPods-0.35.0.app) it wouldn’t matter where you place it on disk, the pod binstub will find it with env CP_APP=CocoaPods-0.35.0 pod […].

from cocoapods-app.

neonichu avatar neonichu commented on June 15, 2024

@AliSoftware those are tangential to the environment variable for the binstub, though.

from cocoapods-app.

alloy avatar alloy commented on June 15, 2024

After a bit more consideration, I think it makes sense to already add support for reading it from a User Default, but setting it should be done through the defaults command.

from cocoapods-app.

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.