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

  • Also, have tried turning it on and off again.

  • 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.

Add a Comment

Apple Recommended

  • It's a curious change because the whole /usr/lib/arc directory is gone in Xcode 14.3 beta. I ran into it yesterday when building a macOS project that had min target of 10.9, and got an error that libarclite_macosx.a was missing. (And also warnings that the deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.3.99).

  • For an even more direct answer, from DTS's tools specialist no less, see this thread.

Add a Comment

Replies

Still not work ??????

For those running a Flutter app, do the following:

  1. run flutter clean
  2. Delete your Podfile.lock file and your Pods directory (ios/Pods)
  3. run flutter pub get
  4. Update your Podfile by replacing your post_install section with the following:
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
    end
    flutter_additional_ios_build_settings(target)
  end
end
  1. cd into your ios directory and run pod install
  2. build your app flutter run

Hope this helps!

The above bug fix works when building the app on my iPhone. But archiving does not work. I have the following error:

Command PhaseScriptExecution failed with a nonzero exit code

The logs show:

rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework" "/Users/../Library/Developer/Xcode/DerivedData/Runner-dikvfvwemjaxumfhjbnxifpkoagx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks"
building file list ... rsync: link_stat "../ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code

Downgrading to Xcode14.2 does not solve the problem!

Add a Comment

I solved the problem

All deployment targets should be set on 11

  • When I do pod install or pod update <pod_name> after changing them to 11, they reset to what was before, can anyone help me with this?

Add a Comment

What worked for me is described in this issue:

https://github.com/flutter/flutter/issues/123852

The gist of it is that you change a line in this file : ios/Pods/Targets Support Files/Pods-Runner/Pods-Runner-frameworks.sh

from source="$(readlink "${source}")" to source="$(readlink -f "${source}")"

I hope the next flutter version will address this and this won't be necessary anymore. This fix is for Flutter 3.7.9

I encountered the same problem with version 14.3 (14E222b). There seems to be a fix possible by changing cocoa as published here: https://github.com/CocoaPods/CocoaPods/issues/11808

However, I could solve it by adding the frameworks directly without installing it via cocoa pods. But this is only restricted to frameworks which allow the direct import.

Adding this code to your podfile will fix the issue

Add post-install script to set minimum deployment target for all pods

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end end end

I tried downgrading to XCode 14.2 (14C18) and it worked for me.

I met the same error while built my application under the latest Xcode version 14.3, actually we used a few of old third-party package some of them compiled with iOS 8.0 or a little higher, so I download a little older Xcode version 13.4 and find the missing libraries to the new Xcode version with the same path, clean and re-build anything works well. Hope this help to us all.

cp /Users/burderly/Downloads/Xcode\ 13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/* to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/

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 &#x2F;Applications&#x2F;Xcode.app&#x2F;Contents&#x2F;Developer&#x2F;Toolchains&#x2F;XcodeDefault.xctoolchain&#x2F;usr&#x2F;lib

NOTE: Beta candidate

# If beta release candidate (14.3 beta)
cd &#x2F;Applications&#x2F;Xcode-beta.app&#x2F;Contents&#x2F;Developer&#x2F;Toolchains&#x2F;XcodeDefault.xctoolchain&#x2F;usr&#x2F;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:&#x2F;&#x2F;github.com&#x2F;kamyarelyasi&#x2F;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.

  • UPDATE

    git clone must use sudo

  • This should be marked as the right answer. Thank you so much! I can't believe Apple forgot to include the "arc" folder in the stable public App Store release of XCode 14.3, and devs have to download it from a public repo. Such a misstep.

  • great answer by a great man

sudo mkdir arc

This does not appear to be possible in MacOS Ventura

mkdir: arc: Operation not permitted

Whats the workaround ?

  • Hi, on this link the solution works: https://iboysoft.com/howto/operation-not-permitted-mac-terminal.html#how-to-fix-terminal-error-operation-not-permitted

Add a Comment

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.