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.
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/
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.
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
$“/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib”$