question:
After upgrading to XCode 14.3, an error occurs when compiling Minimum Deployments for projects below iOS 11----
Error: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
reason:
Xcode 14 only supports building deployment targets for iOS 11. libarclite
was required on older versions of the operating system, but is now obsolete and the file has been removed in XCode 14.3.
plan:
1. Apple recommendation: Modify the support target to iOS 11 and above
Note: If you use pod, the third-party framework in the pod also needs to be modified. Add the code in the podfile and modify it all.
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'] = '11.0'
end
end
end
end
cd to the project directory in the terminal and execute pod install --repo-update (or delete the pod-related files in the project and directly pod install)
2. Find the file in the old version of XCode and add it back
Path: > /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/