when i build my app i have issue
Failed to build iOS app
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Xcode 14 only supports building for a deployment target of iOS 11.
libarclite
was necessary for older OS versions, but is now obsolete. If you're encountering errors referring to this library, you should audit every target in your project for those that declare support for a minimum deployment target under iOS 11, and update them to at least iOS 11, or something more recent than that. You should not modify your Xcode installation to resolve this.
Same.
[ +2 ms] Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
[ +2 ms] Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
[ +2 ms] Could not build the application for the simulator.
[ ] Error launching application on iPad (10th generation).
[ +8 ms]
Found this Info
https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3
please check
To fix this issue, you must ensure that the iOS Deployment Target of your pods is 11.0; pods with a iOS Deployment Target of 8.0 were causing the issue for me.
Example pods that were set to iOS Deployment Target 8.0: leveldb-library, nanopb.
You will receive this error for any pods that are set to 8.0 when building, so change them to 11.0 either manually or with a post install script in your Podfile.
Open Terminal and go to the follow folder:
cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
Create the folder arc:
sudo mkdir arc
cd arc
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .
Give the necessary permission:
sudo chmod +x *
Now you will be able to build and run
Xcode 14 only supports building for a deployment target of iOS 11. libarclite
was necessary for older OS versions, but is now obsolete. If you're encountering errors referring to this library, you should audit every target in your project for those that declare support for a minimum deployment target under iOS 11, and update them to at least iOS 11, or something more recent than that. You should not modify your Xcode installation to resolve this.
Add this at the end of your podfile (+ pod install) to override the iOS Deployment Target of all your pods.
Make sure to choose the appropriate minimum deployment target (iOS 11 or above).
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
Xcode 14 only supports building for a deployment target of iOS 11. libarclite was necessary for older OS versions, but is now obsolete. If you're encountering errors referring to this library, you should audit every target in your project for those that declare support for a minimum deployment target under iOS 11, and update them to at least iOS 11, or something more recent than that.
I updated POD minimum deploymnet to 11.0 and it worked for me.
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
Add above line at the end of your Podfile. Replace 15.0 with your deployment IOS version. Run Pod Install. Delete Derived Data. Re-Run. Build will succeed.
this error is because the Target version of one of your Pods that not compatible with your application minimums target,
In my application I used Reachability Pods by default the minimum version was 8.0 and my app target version was 11.0
So I fixed it by Changing the Pods version to my App version which is 11.0
Solution
Pod -> chose target -> BuildSetting -> change the IOS Deployment Target
I have solved the issue through this
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the
Apple Developer Forums Participation Agreement.
Forums
Apple Developer Program
Apple Developer Enterprise Program
App Store Small Business Program
MFi Program
News Partner Program
Video Partner Program
Security Bounty Program
Security Research Device Program