Xcode 14.3 File not found XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

Lee young-jun
2 min readJun 8, 2023

--

I tried to update my app in a long time since upgrading Xcode to 14.3.
However I encountered this error.

According to stackoverflow, one of solutitons is to copy that .a file from Xcode 14.2 to 14.3. But I am using Github Workflow, so I should copy command into yml. I don’t like that.

Instead of it, I choose another solution.

  1. Open Pods project and select Build Settings tab.
  2. Modify iOS Deployment Target to iOS 13.0

With above solution, I solved the error of RxSwift.
However another Pod library emitted same error.

This way makes me to modify Build Settings project whenever updating Pods. So I make the task running automatically while updaing Pods.

By adding script into Podfile, I achived it.
I opened Podfile and modifies like below. The key point is IPHONEOS_DEPLOYMENT_TARGET

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

With that modification, I installed Pods again and the error was disappeared.

References

--

--

No responses yet