[ios][Cocoapods] Podfile平台版本未在cordova准备中更新

huangapple go评论51阅读模式
英文:

[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.

huangapple
  • 本文由 发表于 2023年6月12日 17:09:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76455119.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定