英文:
[ios][Cocoapods] Podfile platform version is not updated on cordova prepare
问题
我有一个Ionic Cordova混合项目。我尝试在Podfile中更新iOS版本平台,但无法更改版本。默认情况下,Cordova设置为'platform :ios, '11.0'',但我有一个依赖项需要最低iOS 12.4。
我在我的config.xml中添加了以下内容:
我的Podfile自动生成如下:
... platform :ios '11.0' ...
有人可以帮助我吗?谢谢。
英文:
I've an ionic cordova hybrid project. I try to update the ios version platform in Podfile but i cannot change version. By default cordova set 'platform :ios, '11.0', but i've got a dependency needing min ios 12.4.
I put in my config.xml =>
<platform name="ios">
<preference name="deployment-target" value="12.4"/>
...
</platform>
my Podfile auto-generated =>
...
platform :ios '11.0'
...
can anybody help me? thanks
答案1
得分: 0
你的最低部署目标已经是11了,小于12.4。但如果你仍然想要更改它,那么在Xcode中打开ProjectFolder > Platform > ios > myApp.xcworkspace,然后从构建设置中进行更改。
英文:
Your minimum deployment target is already 11. Which is less than 12.4. But still if you want to change it. Then open ProjectFolder>Platform>ios>myApp.xcworkspace in Xcode and change from Build settings
答案2
得分: 0
Podfile是由cordova-ios生成的,平台版本必须在Podfile中手动更改。
英文:
The podfile is generated from cordova-ios, and the platform version must be change manually in Podfile.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论