iOS - pod package 把私有库打包为 framework

这篇博客介绍了如何使用cocoapods-packager将iOS私有库打包成framework,包括安装cocoapods-packager、配置podspec文件和执行打包命令,特别强调了各种命令参数的含义和使用场景,如强制覆盖、选择动态或静态库、设置Bundle Identifier等。
摘要由CSDN通过智能技术生成

1. 安装 cocoapods-packager

如果没有安装 cocoapods-packager ,可以使用如下命令安装:

$ gem install cocoapods-packager

2. podspec文件的内容结构

#
# Be sure to run `pod lib lint ASDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ASDK'
  s.version          = '0.1.0'
  s.summary          = 'A short description of ASDK.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值