You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "alexp25 (via GitHub)" <gi...@apache.org> on 2023/11/20 21:32:11 UTC

[I] warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99 [cordova-ios]

alexp25 opened a new issue, #1386:
URL: https://github.com/apache/cordova-ios/issues/1386

   # Bug Report
   
   ## Problem
   After upgrading to `cordova-ios@7` I get the following warning (which seems to break the build)
   
   > warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99 (in target 'FirebaseCore' from project 'Pods')
   
   ### What is expected to happen?
   
   The `cordova build` should override `IPHONEOS_DEPLOYMENT_TARGET` based on the specified `deployment-target`
   
   ### What does actually happen?
   
   The build fails with error code 65
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   I looked into the generated Podfile and found out that it was missing the previously built-in fix mentioned here: https://developer.apple.com/forums/thread/656616
   
   It was working with `cordova-ios@6`  using these preferences in the `config.xml`
   
   ```
   <preference name="pods_ios_min_version" value="11.0" />
   <preference name="deployment-target" value="11.0" />
   <preference name="pods_use_frameworks" value="true" />
   ```
   
   I tried to add this manually:
   
   ```
   post_install do |installer|
    installer.pods_project.targets.each do |target|
     target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
     end
    end
   end
   ```
   
   ..but it gets overwritten every time I run `cordova build`
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   `cordova build`
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   macOS Sonoma
   cordova-ios@7.0.1
   cordova@12.0.0
   XCode 15.0.1
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99 [cordova-ios]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #1386:  warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99
URL: https://github.com/apache/cordova-ios/issues/1386


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99 [cordova-ios]

Posted by "Dkogan90 (via GitHub)" <gi...@apache.org>.
Dkogan90 commented on issue #1386:
URL: https://github.com/apache/cordova-ios/issues/1386#issuecomment-1851437911

   Same issue here


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0.99 [cordova-ios]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1386:
URL: https://github.com/apache/cordova-ios/issues/1386#issuecomment-1820054061

   `pods_ios_min_version` and `pods_use_frameworks` are not preferences that Cordova reads, though it's possible that a third-party framework uses them.
   
   `deployment-target` is used, but it will only change the target for the app project, not the `CordovaLib` project.
   
   Closing as duplicate of: https://github.com/apache/cordova-ios/issues/1379
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org