apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 986 forks source link

Version 17 breaks podfile with deployment-target #1389

Open phillipplum opened 5 months ago

phillipplum commented 5 months ago

Bug Report

Problem

I have a correct Podfile when creating the iOS platform and a plugin (in this case Wonderpush).

# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '14.0'
use_frameworks!
target 'App' do
    project 'App.xcodeproj'
    pod 'WonderPush', '4.1.6'
end

target 'WonderPushNotificationServiceExtension' do
  platform :ios, '10.0'
  use_frameworks!
  pod 'WonderPushExtension', '4.1.6'
end

Now I add the deployment-target to config.xml (it doesn't matter which version or whether it is influenced by a plugin, for example):

<preference name="deployment-target" value="14.0" />

If you now run a cordova build, the Podfile looks like this and therefore no longer works correctly:

# DO NOT MODIFY -- auto-generated by Apache Cordova

platform :ios, '14.0'
use_frameworks!
target 'App' do
    project 'App.xcodeproj'
    pod 'WonderPush', '4.1.6'
    pod 'WonderPushExtension', '4.1.6'
end

Command or Code

Environment, Platform, Device

Version information

Cordova: 12.0.0 (cordova-lib@12.0.1) macOS: 14.1 Xcode: 15.0.1

Checklist

lucaele commented 4 months ago

Same issue: cordova: 12.0.0 (cordova-lib@12.0.1) macOS: 13.5.2 Xcode: 15.1 cordova-ios: 7.0.1

Any fix? Thanks

budda commented 4 months ago

Same s/w versions as @lucaele and same Cordova issue around Podfiles and deployment-target.