Problem statement

Xcode needs to use the libarclite_iphonesimulator.a file when compiling the swift code. This file is related to the cocoa pod files. Xcode throws the error when it cannot locate libarclite_iphonesimulator.a, which was not present in my case.

Solution

Open Terminal and navigate to “/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/”

cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/

Screenshot 2023-05-17 at 00.52.41.png

clone the missing file from GitHub repo

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

Above will create a new folder called “Libarclite-Files” in arc/ directory and all the necessary .a files required for building a project in Xcode.

Screenshot 2023-05-17 at 01.02.28.png

after completing above step run the project again

if still you get the error that could be simply because all the files cloned are located in the folder “Libarclite-Files” but Xcode is looking only in arc/ directory

quick fix

  1. open a new finder window
  2. press cmd + shift + g
  3. In Go to Folder section bar paste the arc file location path

$“/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib”$