You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "amcalgates (via GitHub)" <gi...@apache.org> on 2024/04/09 00:22:13 UTC

Re: [I] Xcode 15.0: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.0.99. [cordova-ios]

amcalgates commented on issue #1379:
URL: https://github.com/apache/cordova-ios/issues/1379#issuecomment-2043925815

   @erisu - this is not just a warning if you're using Xcode 15, and per @julfrechette's comment, we are all going to be forced to use it this month.
   
   In my case this build error (which prevents compilation and is not just a warning) is due to plugins I'm using that bring in Cocoapods that have their deployment target set to a version <12.
   
   This is a problem outside of Cordova as well. For my native apps I've solved the problem by appending this to my `Podfile`:
   
   ```
   post_install do |installer|
       installer.generated_projects.each do |project|
           project.targets.each do |target|
               target.build_configurations.each do |config|
                   config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
               end
           end
       end
   end
   ```
   
   As seen [here](https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3/75980471#75980471) and in many other SO answers.
   
   A temporary workaround to get my Cordova apps to build is to go into Xcode and manually change the deployment target of each offending pod target. However, these changes are all nuked every time I run `cordova build ios`.
   
   Is there some way for cordova-ios users to modify the Podfile? It seems there is, but that that is [also broken](https://github.com/apache/cordova-ios/issues/1389)? As I have this in my config.xml:
   
   `<preference name="deployment-target" value="12.0" />`
   
   I really think this issue should be re-opened.


-- 
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