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
2
Answers
My guess is that the iOS
10.0
platform is coming from the Cordova plugin.xml. Perhaps tied to the5.1.0
version ofcordova-ios
?I am not a Cordova developer, but you could try setting the
deployment-target
in yourconfig.xml
. See here (scroll down todeployment-target
).A quick Google search would indicate that this is the expected way to resolve this, but that it is a bit touchy.
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