My project was building fine with Xcode 14.1. After upgrading Xcode to 14.3 (and MacOS to Ventura), the project at first reported that build succeeded. But then when I tried to run the project, it suddenly reported that build failed, with the following error:
ld: file not found: /Applications/Xcode 14.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a clang: error: linker command failed with exit code 1 (use -v to see invocation)
The build fails while trying to link a cocoa pod library we use called SVProgressHUD. The full link command as found in the build log is as follows:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Products/Debug-iphoneos/SVProgressHUD/SVProgressHUD.framework/SVProgressHUD normal (in target 'SVProgressHUD' from project 'Pods')
cd /Users/username/lineskip_dev/ios_apps/dudleys/Pods
/Applications/Xcode\ 14.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios8.0 -dynamiclib -isysroot /Applications/Xcode\ 14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -L/Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Products/Debug-iphoneos/SVProgressHUD -F/Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Products/Debug-iphoneos/SVProgressHUD -filelist /Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/SVProgressHUD.build/Objects-normal/arm64/SVProgressHUD.LinkFileList -install_name @rpath/SVProgressHUD.framework/SVProgressHUD -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/SVProgressHUD.build/Objects-normal/arm64/SVProgressHUD_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -framework QuartzCore -framework Foundation -framework QuartzCore -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/SVProgressHUD.build/Objects-normal/arm64/SVProgressHUD_dependency_info.dat -o /Users/username/Library/Developer/Xcode/DerivedData/Dudleys-awqewehuamgjgrfgdpuqcillyxfo/Build/Products/Debug-iphoneos/SVProgressHUD/SVProgressHUD.framework/SVProgressHUD
What's strange is that we are successfully building other projects with Xcode 14.3 that use this same library. And I can't find the reason why the linker is trying to link to the file libarclite_iphoeos.a
in the first place.