How to Fix Xcode 14.3 libarclite_iphonesimulator.a Error

While upgrading Carthage libraries for Xcode 14.3.1, one of the libraries that my team depends on is throwing errors. I checked the repo and found out that the library have been archived. I forked the repo and tried to run it locally.

It threw the following error when I ran it:

ld: file not found: /Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Apparently, this is because with Xcode 14.3.1 the minimum deployment target have been set to iOS 11. DZNEmptyDataSet is still using iOS 8 as its minimum deployment target. Upgrading it to iOS 11 fixed the error.

p/s: Yeah I know the usage of this library is somewhat unecessary but it’s already being used everywhere and replacing it with our implementation will require huge effort. Maybe some day. Not today.