Flutter ITMS-90338: Non-public API usage - Frameworks/webview_flutter_wkwebview.framework

前言

最近做flutter开发,前几次构建iOS正式包的时候上传IPA到App Store没有问题,这次突然上传不成功,收到邮件如下:

App Store Connect
 
Dear Developer,

We identified one or more issues with a recent delivery for your app, "xxx" x.x.0 (x). Please correct the following issues, then upload again.

ITMS-90338: Non-public API usage - The app references non-public selectors in Frameworks/webview_flutter_wkwebview.framework/webview_flutter_wkwebview: estimatedProgress, initWithFrame:configuration:, isMainFrame, setNavigationDelegate:, userContentController, websiteDataStore. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/

Best regards,

The App Store Team

一看觉得是自己的用了苹果私有的方法,然后各种找,发现在.symlinks下面有这些方法。

二、解决方法:
1、删除.symlinks目录

请添加图片描述

2、执行以下命令

flutter clean
rm -rf ios/Flutter/Flutter.framework
rm -rf ios/.symlinks/plugins/webview_flutter_wkwebview 
flutter build ios --release

重新打包上传即可解决!

END.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

明似水

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值