Fix build & archive errors in XCode 14.3
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 | post_install do |installer| |
- 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}")" |
Comment