xcode9.4 打包framework静态库(包含pods第三

2018-06-14  本文已影响0人  左岸客栈

1. 创建打包工程

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'Cake' do
  pod 'AFNetworking', '~> 3.2.1'
end

#pod默认生成的.a文件时arm64的,  Profile在文件尾部追加如下代码
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ARCHS'] = "arm64 armv7 armv7s"
        end
    end
end

2. 添加公开头文件

3. 更改设置参数

4.工程打包成 Framework

5. 将两个 Framework 合成

上一篇 下一篇

猜你喜欢

热点阅读