blakgeek / cordova-plugin-cocoapods-support

A Cordova/PhoneGap plugin to add support for CocoaPods dependencies.
MIT License
72 stars 72 forks source link

How to add pod for specified target? #53

Open julia-fix opened 1 year ago

julia-fix commented 1 year ago

In order to add this to Podfile of my app:

target 'OneSignalNotificationServiceExtension' do
    pod 'OneSignalXCFramework', '>= 5.0', '< 6.0'
end

I add this line to config.xml: <pod name="OneSignalXCFramework" target="OneSignalNotificationServiceExtension" spec="~> 5.0.0" />

But the generated output is this:

target 'MyMainTarget' do
    pod 'OneSignalXCFramework', '~> 5.0.0'
end

What is the way to replace "MyMainTarget" with "OneSignalNotificationServiceExtension"?