I'm writing a cordova plugin and I have a framework I'm adding with cocoapod. The framework has a minimum ios requirement of version 13.0. When my pod file is generated it is defaulting to ios 10.0. How do I set the required IOS version in my plugin.xml?
plugin.xml snippets:
<engines>
<engine name="cordova" version=">=6.0.0" />
<engine name="cordova-android" version=">=9.0.0" />
<engine name="cordova-ios" version=">=5.1.0" />
</engines>
<platform name="ios">
...
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="ArcGIS-Runtime-SDK-iOS" spec="100.10" />
</pods>
</podspec>
</platform>
podfile created:
source 'https://cdn.cocoapods.org/'
platform :ios, '10.0'
use_frameworks!
target 'testPluginApp' do
project 'testPluginApp.xdodeproj'
prod 'ArcGIS-Runtime-SDK-iOS', '100.10'
end
Setting the deployment-target in the config.xml is correct.
However, the pod file will only be updated if you add the ios platform again before calling
cordova prepare
orcordova build
.My final working solution:
which results into