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.

I found the arc folder it's referencing to be completely missing from my Xcode 14.3 install. Since I still had the Xcode 14.2 install on my computer, I navigated to the arc folder in that installation, copied it and pasted it into the Xcode 14.3 location it was missing from. If you don't still have Xcode 14.2, you can download it from Apple and should be able to find it that way.

I found the arc folder it's referencing to be completely missing from my Xcode 14.3 install. Since I still had the Xcode 14.2 install on my computer, I navigated to the arc folder in that installation, copied it and pasted it into the Xcode 14.3 location it was missing from.

Do not do this. Once you start modifying your local copy of Xcode you leave the path of what’s supported. See this post for my thoughts on why that’s a bad idea (it’s from a very different context but the same lesson applies).

The correct solution is to work through your build system to determine why it’s trying to use this ancient library. Many folks have already done that successfully and posted their experience on this thread. I recommend that you follow their path, rather than applying an expedient workaround that will cause more problems down the line.

Share and Enjoy

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

I encountered the same bug in Xcode 15 Beta 4. To fix it, I had to change the iOS Development Target for the Pods. By default, the previous project settings showed support for older iOS versions like iOS 9 or 8, which caused the issue. I selected iOS 12 as the minimum deployment target, and that resolved the problem.

Hello dear when i use cloud_firestore dependencies after my project didn't run on simulator so plz guide to me

Launching lib/main.dart on iPhone 15 Pro in debug mode... Running pod install... Running Xcode build... Xcode build done. 47.0s Failed to build iOS app Swift Compiler Error (Xcode): Value of optional type '(any StorageProvider)?' must be unwrapped to refer to member 'storage' of wrapped base type 'any StorageProvider' /Users/mumtazsindhi/Documents/GitHub/wallet/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:72:11

Swift Compiler Error (Xcode): Value of optional type '(any StorageProvider)?' must be unwrapped to refer to member 'storage' of wrapped base type 'any StorageProvider' /Users/mumtazsindhi/Documents/GitHub/wallet/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:87:11

Swift Compiler Error (Xcode): Cannot assign value of type '(any AuthInterop)?' to type 'any AuthInterop' /Users/mumtazsindhi/Documents/GitHub/wallet/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:290:38

Swift Compiler Error (Xcode): Cannot assign value of type '(any AppCheckInterop)?' to type 'any AppCheckInterop' /Users/mumtazsindhi/Documents/GitHub/wallet/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:292:46

Could not build the application for the simulator. Error launching application on iPhone 15 Pro. i got this error

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