Unable to build project in Xcode 14.3 beta due to missing arc dir at /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

Downloaded Xcode 14.3 this morning and it will not build the project. It fails building the CocoaPods project with this error:

It varies which pod causes the failure, but always the first to link.

cd'ing into there confirms that there is no arc dir. The regular Xcode app (Version 14.2 (14C18)) runs just fine.

Any ideas?

Potentially useful information:

  1. Project with objc, swift and c
  2. Uses CocoaPods
  3. Uses automatic reference counting
  4. macOS Ventura 13.2.1 (22D68)
  5. Version 14.3 beta (14E5197f)
Answered by DTS Engineer in 745550022

If you build a standard iOS app created from New > Project > iOS > App template and then looking at the build transcript, there are no references to libarclite_iphoneos.a. That’s because the app’s deployment target is modern enough that it can rely on ARC being built in to the system. Indeed, that’s always the case with Xcode 14, where it’s minimum supported deployment target is iOS 11 [1].

Presumably your app’s deployment target is not lower than what Xcode supports, so the question becomes: Why is your project trying to link libarclite_iphoneos.a, something it most definitely does not need? I don’t have a ready answer to that but it’s likely to be related to your third-party build system. I recommend that you escalate this via its support channel.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] ARC was added to the system so far back that I can’t honestly remember when it happened. However, Wikipedia says iOS 5, and I’ve no reason to disbelieve it.

Also, have tried turning it on and off again.

If you build a standard iOS app created from New > Project > iOS > App template and then looking at the build transcript, there are no references to libarclite_iphoneos.a. That’s because the app’s deployment target is modern enough that it can rely on ARC being built in to the system. Indeed, that’s always the case with Xcode 14, where it’s minimum supported deployment target is iOS 11 [1].

Presumably your app’s deployment target is not lower than what Xcode supports, so the question becomes: Why is your project trying to link libarclite_iphoneos.a, something it most definitely does not need? I don’t have a ready answer to that but it’s likely to be related to your third-party build system. I recommend that you escalate this via its support channel.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] ARC was added to the system so far back that I can’t honestly remember when it happened. However, Wikipedia says iOS 5, and I’ve no reason to disbelieve it.

Thank you! That makes so much sense. CocoaPods iOS deployment target defaults to 8. Guess it is time to modify the Podfile to change it and let them know.

k.alonso, did modifying the podfile work for you? My target deployment is ios 14.0, and I'm still getting the same error.

I am also facing the same prooblem and have tried several approaches to solve but failed. I hope that someone who's overcome or understand this problem share with us the solution.

result in your pod private lib , pod lib's minideployment target should up to iOS11 and more

edit your podfile as this

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
27

works for me, Version 14.3 beta 2 (14E5207e)

It is not working for me: Version 14.3 (14E222b)... Pretty annoying, first we receive an iOS update (16.4) which brakes the compatibility with xCode 14.2... Than after updating to version 14.3 RC, still not working but with a different error...

Hi please let me know if you find any fix.. I'll do the same... tks

Hi, open your ios project directory in the terminal, and execute: pod install

same problem

Just upgraded Xcode Version 14.3 (14E222b) and encountered the same problem

Yo también tengo el gusto de disfrutar del mismo problema !!

Vale, he podido solventar el problema cambiando en "Minimum Deployments" a versión por ejemplo 14.0 en todos los TARGETS de Pods.

Change 8.0 to 11.0 worked for me

25
Unable to build project in Xcode 14.3 beta due to missing arc dir at /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib
 
 
Q