DEV Community

phoenixharoz
phoenixharoz

Posted on

Missing file libarclite_iphoneos.a (Xcode 14.3)

Error :
File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

Recently I started getting this error on my Xcode 14.3 iOS 16.4 project setup. Realised that many devs are having this issues. I managed to resolve this error by

wanted_project_target = 11.0

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        current_project_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f

        if current_project_target < wanted_project_target
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = wanted_project_target.to_s
        end
      end
    end
  end
end
Enter fullscreen mode Exit fullscreen mode

Top comments (0)