添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
乐观的竹笋  ·  xcode-select: note: ...·  1 周前    · 
英勇无比的野马  ·  ESP32-Cam: On Mac, ...·  1 周前    · 
面冷心慈的仙人球  ·  How to install Rust ...·  1 周前    · 
欢快的冰棍  ·  Xcode (install on ...·  1 周前    · 
飘逸的哑铃  ·  Unable to install ...·  1 周前    · 
怕老婆的沙发  ·  AUR (en) - youdao-dict·  3 周前    · 
一身肌肉的小虾米  ·  golang image.Image ...·  2 月前    · 
很酷的山楂  ·  发生了一个错误: ...·  2 月前    · 
想出国的烤地瓜  ·  如何对 McAfee Agent ...·  3 月前    · 

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
  • Terms of Use Privacy Policy License Agreements