7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Xcode14.3にしたらCocoaPodsで入れたライブラリがビルド失敗する

Last updated at Posted at 2023-04-12

起こったこと

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上だとここが変わります。

スクリーンショット 2023-04-12 19.57.41.png

ビルドが通り、無事解決!

参考

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?