pod armv7

pod    默认生成的.a文件时arm64的,不支持低版本IOS7,开发时如果需要使用,则需要如下修改:

1、修改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、运行 pod update更新

3、打开xcode ,修改pod的build setting,Change Build Active Architecture Only from Yes to No

4、clean 重新编译

5、检查.a支持什么cpu,可以用以下命令

lipo -info *.a

 结果

Non-fat file: libAFNetworking.a is architecture: arm64
Non-fat file: libDACircularProgress.a is architecture: arm64
Non-fat file: libMBProgressHUD.a is architecture: arm64
Non-fat file: libMWPhotoBrowser.a is architecture: arm64

 说明这些.a都不支持armv7,需要修改pod设置

猜你喜欢

转载自newslxw.iteye.com/blog/2314179