起こったこと
Xcodeを14.3にアップデートしたら、CocoaPodsでインストールしていたライブラリがビルド時にこけるようになった。
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解決
podfileのpost_install
でMinimum Developmentsのバージョンを一気に上げる方法がstackoverflowで紹介されていたので、記述して再度pod install
を実行
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end
ちなみに、Xcode上だとここが変わります。
ビルドが通り、無事解決!
参考