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.

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

This worked for me

if you're running into this issue with the leveldb CocoaPod (a dependency of FirebaseFirestore and FirebaseDatabase), we've published version 1.22.2 with updated minimum versions, compatible with Xcode 14. Run pod update to get 1.22.2.

I figured out the problem. I had to increase the deployment target for the Pod module that was causing the error to iOS 15.0. At least, that's what worked for me.

This going to be 100% working fix for you. At first analyze the issue.

The error state that there are fre files that are missing(Actually one). As of the issue probably arc folder is missing in 14.3(public&beta) release candidates.

Things to do

Head over to this location

NOTE: Public candidate

# If public release candidate (14.3)
cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

NOTE: Beta candidate

# If beta release candidate (14.3 beta)
cd /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

Create a dir with sudo permissions(Won't allow you without sudo)

sudo mkdir arc
cd arc

Now clone(I personally recommend)/download a github repo Libarclite-Files

git clone https://github.com/kamyarelyasi/Libarclite-Files.git .

Grand execution permissions for everything in it.

sudo chmod +x *

Now try

pod deintegrade
rm -rf podfile.lock
pod install

Ideally, after this pod installs it should work. If not follow this(But need to do it every time you deintegrate and install them)

  • Go to Pods\Target Support Files\Pods-Runner or Pods-App
  • Open Pods-Runner-frameworks.sh or Pods-App-frameworks.sh in an editor
  • Search for source="$(readlink "${source}")"(Ideally at line:45)
  • And update it to source="$(readlink -f "${source}")"

NOTE: This is one time setup. So you don't need to change your app configs because of your dev env.

sudo mkdir arc

This does not appear to be possible in MacOS Ventura

mkdir: arc: Operation not permitted

Whats the workaround ?

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