cordova-plugin-cocoapods-support icon indicating copy to clipboard operation
cordova-plugin-cocoapods-support copied to clipboard

How to add pod for specified target?

Open julia-fix opened this issue 1 year ago • 0 comments

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

julia-fix avatar Sep 26 '23 07:09 julia-fix