美文网首页
Xcode14.0.1提交APP警告:The app refer

Xcode14.0.1提交APP警告:The app refer

作者: 野咪咕 | 来源:发表于2022-10-13 13:51 被阅读0次

    警告信息:

    The app references non-public selectors in Payload/项目名字.app/项目名字: currentSession, tapGesture:

    报这个警告其实也可以提交成功,但是以防出现问题,还是得解决下,首页在工程里搜索下currentSession 和 tapGesture 看有没有这两个方法,如果有改下方法名就可以了。

    但是currentSession 在工程里搜索了没有到怎么办?

    打开终端->cd到工程里->find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep currentSession

    find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep currentSession

    //currentSession 是要搜索的字符串

    然后会输出一大堆log,在log里搜“matches”,就能找到   很明显上面这个是AlipaySDK(支付宝SDK)里的

    //这是我工程里的搜索出来的

    //解决办法:更新支付宝SDK

    Binary file ./项目名字/myPay/alisdk/AlipaySDK.framework/AlipaySDK matches

    //解决办法:找到(项目名字.xcodeproj) 显示包内容,根据路径删除

    Binary file ./项目名字.xcworkspace/xcuserdata/csea.xcuserdatad/UserInterfaceState.xcuserstate matches

    相关文章

      网友评论

          本文标题:Xcode14.0.1提交APP警告:The app refer

          本文链接:https://www.haomeiwen.com/subject/kjjfzrtx.html