phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Warning about 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0 when building iOS #2872

Open joeldhenry opened 4 years ago

joeldhenry commented 4 years ago

Expected Behaviour

deployment target to be determined by config.xml

Actual Behaviour

warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FirebaseInstanceID' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FirebaseAnalytics' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FirebaseMessaging' from project 'Pods')

Steps to Reproduce

cordova platform add ios@5.1.1 cordova plugin add phonegap-plugin-push@2.3.0

Platform and Version

cordova ios 5.1.1 phonegap-plugin-push 2.3.0

RvAgrawal commented 4 years ago

add below line of code at the end of your podfile. it will delete IPHONEOS_DEPLOYMENT_TARGET and set the project's deployment target.

post_install do |lib|
    lib.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
        end
    end
end