Ionic 6 capacitor iOS build failed

copy/ios/DerivedData/5B2802FE-35AB-453C-8F09-C0CF1179D51A/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CapacitorCordova.build/Objects-normal/arm64/CDVPlugin+Resources.o /Users/halfmad/Downloads/Ionic\ Projects/tcrptusacom-invoicing\ copy/node_modules/@capacitor/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin+Resources.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'CapacitorCordova' from project 'Pods')


maybe you should redo the setup procedure

ionic cap sync ios
ionic cap update ios

then switch to ios folder, reintall pod or update

cd ios
pod install

also you can check the doc https://capacitorjs.com/docs/ios/troubleshooting