GithubHelp home page GithubHelp logo

Comments (4)

neonichu avatar neonichu commented on July 20, 2024

There is indeed a dynamically generated Podfile, but simply replacing that would make it harder to figure out which Pods are requested as frameworks and which are simply dependencies. For the latter, the headers will not be part of the generated framework and by default, symbol mangling will also be applied.

Currently, it is also not supported to choose anything but the latest version of a Pod for the generated framework.

from cocoapods-packager.

mdsb100 avatar mdsb100 commented on July 20, 2024

@alloy
+1
I am very excited.
We have already do it.
Using cocoapods-packager to build binary.
podspec like this:

  if ENV['IS_SOURCE'] || ENV["#{s.name}_SOURCE"]
      puts '-------------------------------------------------------------------'
      puts "Notice:#{s.name} is source now"
      puts '-------------------------------------------------------------------'
      s.source_files = 'Pod/Classes/**/*'
  else
      puts '-------------------------------------------------------------------'
      puts "Notice:#{s.name} is binary now"
      puts '-------------------------------------------------------------------'
      s.source_files = 'Pod/Classes/*.h'
      s.public_header_files = 'Pod/Classes/*.h'
      s.ios.vendored_libraries = "Pod/lib/lib#{s.name}.a"
  end

Install:

IS_SOURCE=1 pod install

or

AFNetwork_SOURCE=1 pod install

or
Install binary if the pod library provide.

pod install

The two questions is:

  1. It must be in private repo, because there is a json file in github repo and there is a podspec file in private repo.
  2. If I am going to change pod between source and binary, I have to clean cache first and remove Pods/ dictionary.

The developer wants a solution to change pod between source and binary.

Be careful using macro.

If someone read Chinese, please check this

@neonichu
When we do 'pod install', the project will rebuild all pods. Even if we only change one pod`s version. Carthage can solve this trouble.
If [email protected] can support this feature, it can solve this trouble too. I am very happy to listen it.

Please reply me.

Thanks!

from cocoapods-packager.

segiddins avatar segiddins commented on July 20, 2024

I think we can close this since Rome does this?

from cocoapods-packager.

neonichu avatar neonichu commented on July 20, 2024

@segiddins πŸ‘

from cocoapods-packager.

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.