<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>组件化 - 分类 - 宋明的博客</title><link>https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/</link><description>宋明的博客</description><generator>Hugo 0.170.0 &amp; FixIt v1.0.0-rc.5-mwimukpl</generator><language>zh-cn</language><lastBuildDate>Sun, 10 Mar 2024 09:47:41 +0800</lastBuildDate><atom:link href="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/index.xml" rel="self" type="application/rss+xml"/><item><title>iOS CocoaPods组件平滑二进制化解决方案及详细教程</title><link>https://apolla.cc/posts/modularization/ios-cocoapods%E7%BB%84%E4%BB%B6%E5%B9%B3%E6%BB%91%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%8F%8A%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B/</link><pubDate>Sun, 10 Mar 2024 09:47:41 +0800</pubDate><guid>https://apolla.cc/posts/modularization/ios-cocoapods%E7%BB%84%E4%BB%B6%E5%B9%B3%E6%BB%91%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%8F%8A%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B/</guid><category domain="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/">组件化</category><description>&lt;p&gt;iOS CocoaPods组件平滑二进制化方案及详细教程&#10;感谢&amp;quot;fly2never_宝贝别哭&amp;quot;。可以使用&lt;a href="https://link.jianshu.com?t=https://github.com/CocoaPods/cocoapods-packager" target="_blank" rel="external nofollow noopener noreferrer"&gt;cocoapods-packager&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;这个插件来方便生成library（静态库，动态库都可以）。&#10;强烈建议生成framework。&lt;/p&gt;</description></item><item><title>iOS CocoaPods组件平滑二进制化解决方案及详细教程二之subspecs篇</title><link>https://apolla.cc/posts/modularization/ios-cocoapods%E7%BB%84%E4%BB%B6%E5%B9%B3%E6%BB%91%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%8F%8A%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B%E4%BA%8C%E4%B9%8Bsubspecs%E7%AF%87/</link><pubDate>Sun, 10 Mar 2024 09:47:41 +0800</pubDate><guid>https://apolla.cc/posts/modularization/ios-cocoapods%E7%BB%84%E4%BB%B6%E5%B9%B3%E6%BB%91%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%8F%8A%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B%E4%BA%8C%E4%B9%8Bsubspecs%E7%AF%87/</guid><category domain="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/">组件化</category><description>&lt;h3 class="heading-element" id="这篇文章主要想介绍以下几个部分"&gt;&lt;span&gt;这篇文章主要想介绍以下几个部分：&lt;/span&gt;&#10; &lt;a href="#%e8%bf%99%e7%af%87%e6%96%87%e7%ab%a0%e4%b8%bb%e8%a6%81%e6%83%b3%e4%bb%8b%e7%bb%8d%e4%bb%a5%e4%b8%8b%e5%87%a0%e4%b8%aa%e9%83%a8%e5%88%86" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ul&gt;&#10;&lt;li&gt;subspecs基本概念&lt;/li&gt;&#10;&lt;li&gt;实际应用的好处&lt;/li&gt;&#10;&lt;li&gt;如何对含有subspecs的CocoaPods库进行二进制化&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h4 class="heading-element" id="什么是cocoapods的subspecs"&gt;&lt;span&gt;什么是CocoaPods的subspecs&lt;/span&gt;&#10; &lt;a href="#%e4%bb%80%e4%b9%88%e6%98%afcocoapods%e7%9a%84subspecs" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;p&gt;来一个直观点的。顺便为自己的&lt;a href="https://link.jianshu.com?t=https://github.com/baidao/YTXAnimations" target="_blank" rel="external nofollow noopener noreferrer"&gt;YTXAnimations&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;做个广告。&lt;/p&gt;</description></item><item><title>火掌柜iOS端基于CocoaPods的组件二进制化实践</title><link>https://apolla.cc/posts/modularization/%E7%81%AB%E6%8E%8C%E6%9F%9Cios%E7%AB%AF%E5%9F%BA%E4%BA%8Ecocoapods%E7%9A%84%E7%BB%84%E4%BB%B6%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E5%AE%9E%E8%B7%B5/</link><pubDate>Sun, 10 Mar 2024 09:47:41 +0800</pubDate><guid>https://apolla.cc/posts/modularization/%E7%81%AB%E6%8E%8C%E6%9F%9Cios%E7%AB%AF%E5%9F%BA%E4%BA%8Ecocoapods%E7%9A%84%E7%BB%84%E4%BB%B6%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%8C%96%E5%AE%9E%E8%B7%B5/</guid><category domain="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/">组件化</category><description>&lt;p&gt;火掌柜 iOS 客户端经过近两年的组件化推进，组件数量已经颇具规模，达到了近 100 个。随着组件数量和代码量越来越多，主工程的打包时间从最初的十几分钟，增加到了现在的四十分钟左右。依赖组件较多，改动相对频繁的上层业务组件，其发布时间也较为漫长。编译时长的困扰，已经明显影响了日常开发体验，同时也造成 CI pipeline 执行时间过长，在 runner 资源匮乏的情况下，不利于内部 CI 的推广。当前时间节点下，如何减少编译时长，已经成为开发团队较为迫切的需求。&lt;/p&gt;</description></item><item><title>美术宝组件化架构工程步骤</title><link>https://apolla.cc/posts/modularization/%E7%BE%8E%E6%9C%AF%E5%AE%9D%E7%BB%84%E4%BB%B6%E5%8C%96%E6%9E%B6%E6%9E%84%E5%B7%A5%E7%A8%8B%E6%AD%A5%E9%AA%A4/</link><pubDate>Sun, 10 Mar 2024 09:47:41 +0800</pubDate><guid>https://apolla.cc/posts/modularization/%E7%BE%8E%E6%9C%AF%E5%AE%9D%E7%BB%84%E4%BB%B6%E5%8C%96%E6%9E%B6%E6%9E%84%E5%B7%A5%E7%A8%8B%E6%AD%A5%E9%AA%A4/</guid><category domain="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/">组件化</category><description>&lt;p&gt;&lt;strong&gt;一、新建SPArt用于存储学习的各个仓库&lt;/strong&gt;&#10;&lt;a href="http://gitlab.meishubao.com/SPArt" target="_blank" rel="external nofollow noopener noreferrer"&gt;http://gitlab.meishubao.com/SPArt&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&#10;&lt;strong&gt;1、准备仓库：&lt;/strong&gt;&#10;SPArtRepo：私有源podspec&#10;SPArtMainProject ：测试主工程&#10;SPArtCommon：通用层&#10;SPArtFoundation：基础层&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" src='https://apolla.cc/images/936306acc1dc98a8b268a7cac77ee05e.png' alt="image.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;2、创建SPArtMainProject项目&lt;/strong&gt;&#10;配置podfie&lt;/p&gt;</description></item><item><title>模块化与解耦（网络摘要）</title><link>https://apolla.cc/posts/modularization/%E6%A8%A1%E5%9D%97%E5%8C%96%E4%B8%8E%E8%A7%A3%E8%80%A6%E7%BD%91%E7%BB%9C%E6%91%98%E8%A6%81/</link><pubDate>Sat, 09 Mar 2024 23:21:58 +0800</pubDate><guid>https://apolla.cc/posts/modularization/%E6%A8%A1%E5%9D%97%E5%8C%96%E4%B8%8E%E8%A7%A3%E8%80%A6%E7%BD%91%E7%BB%9C%E6%91%98%E8%A6%81/</guid><category domain="https://apolla.cc/categories/%E7%BB%84%E4%BB%B6%E5%8C%96/">组件化</category><description>&lt;h1 class="heading-element" id="简述"&gt;&lt;span&gt;简述&lt;/span&gt;&#10; &lt;a href="#%e7%ae%80%e8%bf%b0" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h1&gt;&lt;p&gt;本文主要讲述了在iOS开发过程中，模块化工程架构的一种组织方式，本文主要讲述基于cocoapods来做模块化的方案，详细讲述了iOS开发怎么进行模块划分的内容，主要会在以下方面做阐述：&lt;/p&gt;</description></item></channel></rss>