pod install すると、なぜかライブラリのターゲット(ActionoSheetPicker-3.0)
の BuildSettings>Archtecture>archtectures が arm64 に設定されます。
このままだと、iphone5 や ipadMini など arm64 でないCPUでの実行や、armv7 なども含む Build の Archive で失敗します。Project レベルだと、ふつうに Standard Architectures になっているので、下記のようなコードを Pod ファイルの末尾に書いて、target レベルの Architectures の設定を削除することで乗り切ることにしました。
Webで理由とか漁ったけどでてこんかった。なんでや!
post_install do |installer|
installer.pods_project.targets.each do |target|
next if target.name.start_with?("Pods")
target.build_configurations.each do |config|
config.build_settings.delete("ARCHS")
end
end
end