The build and archive errors only occur when your Xcode project uses CocoaPods.

Build error in XCode 14.3

Building project in XCode 14.3 gets “File not found” error.

Solution

  • Add the script below to your project’s Podfile
    Have to increase the minimum supported iOS version from 12.2 to 13.0.
1
2
3
4
5
6
7
8
9
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'] = '13.0'
end
end
end
end
  • Reinstall all the pods
1
pod deintegrate; pod install
  • Clean and rebuild the project

Archive error in XCode 14.3

Archiving project in XCode 14.3 gets “rsync error”.


It’s clear the error is from executing the pod script.

Solution

Find the solution at: https://developer.apple.com/forums/thread/725230?login=true

In /Pods/Target Support Files/Pods-AppName/Pods-AppName-frameworks.sh
Replace

1
source="$(readlink "${source}")"

with

1
source="$(readlink -f "${source}")"