Giter VIP home page Giter VIP logo

Comments (5)

chenxGen avatar chenxGen commented on July 17, 2024

我这边没有相同版本的 Mac 去还原你的环境,在其他条件相同的情况下并没有复现你说的问题,猜想这样的问题可能是多个插件间的方法交换导致的递归循环,麻烦列下你环境下安装的其他 CocoaPods 插件,因为所有的插件都会随着 CocoaPods 命令的调用一起加载到当前的 Ruby 进程,部分插件代码不需要依赖 Podfile 里面的插件声明就已经生效了,比如那些方法交换。

from cocoapods-project-hmap.

blastmann avatar blastmann commented on July 17, 2024

调试来看是崩溃在recursively_add_dependent_headers_to_hmap的过程中,如果pod的依赖树比较深(十几级的深度),执行递归遍历时就会遇到类似问题。

似乎缺乏合适的退出递归条件

from cocoapods-project-hmap.

chenxGen avatar chenxGen commented on July 17, 2024

@blastmann 可以提供一个 demo 吗

from cocoapods-project-hmap.

blastmann avatar blastmann commented on July 17, 2024

我有空模拟创建一个看看,但从代码上看最好不要直接递归,我调整了一下代码逻辑,按照以下逻辑可以比较快地跑完:

  1. 优先一次遍历生成所有的pod hmap generator,通过字典缓存
  2. 递归合并aggregate target依赖到的pod,当遇到缓存时应该直接退出一次递归
  3. 生成hmap

from cocoapods-project-hmap.

chenxGen avatar chenxGen commented on July 17, 2024

确实这样处理可以

from cocoapods-project-hmap.

Related Issues (12)

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.