ionic 打包app pod

 

https://ionic.zendesk.com/hc/en-us/articles/360010049673-Managing-plugins-using-cocoapods-in-Ionic-Pro

Cordova plugins using CocoaPods can fail to install during Ionic Appflow Package builds. This is caused by the inability of cordova-ios to preserve the pod install if more than one plugin uses cocoapods. The open cordova-ios issue is available at https://issues.apache.org/jira/browse/CB-12582

The problem can be resolved with two simple hook scripts. Create the following scripts in the root of your project.

Step 1: Create the scripts

update_pods.sh

 


run_pods.sh

 


Step 2: Reference the scripts in the ios platform node of config.xml:

 

The scripts will run just before, and after adding the ios platform. The first updates the pod repos, and the second verifies that all pods are installed after the platform is added.
 

Step 3 (REQUIRED): Your scripts MUST have execute permissions. Without the necessary permissions the scripts will fail with a spawn EACCES error. Permissions can be added using chmod.

 

If your OS does not include the chmod command permissions can be added using git.

Plugins known to be affected:

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值