› Forums › How to solve › Compiling for iOS 12.0, but module ‘Capacitor’ has a minimum deployment target › Reply To: Compiling for iOS 12.0, but module ‘Capacitor’ has a minimum deployment target
July 30, 2025 at 7:13 am
#122298
Participant
After saving :
cd ios/App
pod install
Force override all deployment targets to 14.0
Open your Podfile and add this block at the end:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘14.0’
end
end
end
Reinstall pods
cd ios/App
rm -rf Pods Podfile.lock
pod install
Re-check the results:
grep -rnw ‘./’ -e ‘IPHONEOS_DEPLOYMENT_TARGET’ –include=”*.pbxproj”