最近上架APP 被拒了 蘋果發(fā)來的郵件如下:
Your app, extension, or linked framework appears to contain code designed explicitly with the capability to change your app’s behavior or functionality after App Review approval, which is not in compliance with App Store Review Guideline 2.5.2 and section 3.3.2 of the Apple Developer Program License Agreement.
This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) attack, which can pose a serious security vulnerability to users of your app.
Important Information
As a result of violating this guideline, your app’s review has been delayed. Future submissions of this app, and other apps associated with your Apple Developer account, will also experience a delayed review. Deliberate disregard of the App Store Review Guidelines and attempts to deceive users or undermine the review process are unacceptable and is a direct violation Section 3.2(f) of the Apple Developer Program License Agreement. Continuing to violate the Terms & Conditions of the Apple Developer Program will result in the termination of your account, as well as any related or linked accounts, and the removal of all your associated apps from the App Store.
實(shí)話看到的時(shí)候我懵逼了,各種百度 Google诸蚕,詢問各位網(wǎng)友步势,都沒有得到有效的解決辦法氧猬,最后查資料知道可以打印第三方庫的靜態(tài)包來看,于是老哥開始一個(gè)一個(gè)的檢查坏瘩,終于在友盟分享里面找到了問題盅抚,發(fā)現(xiàn)友盟分享使用了performSelector:, method_exchangeImplementations(),這兩個(gè)函數(shù)倔矾,尼瑪 問題終于解決丰包,滿心歡喜的提交,由于被蘋果拉入了黑名單寄症,等待了將近一周的時(shí)間矩动,終于審核通過了有巧。
打印第三名.a文件所需命令
1. cd .a上級文件夾目錄 (找到.a文件的目錄)
2.?nm?-n?xxx.a?>>?xxx.txt??(將?靜態(tài)庫名.a?所用的函數(shù)名保存到?xxx.txt?文件中)
打開xxx.txt 文件搜索dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations()函數(shù)名如果有用到的掛彩了,將第三方庫更新(有的第三方庫最新版本可能不行反而老版本的可以,老哥哥們自己斟酌了)悲没。
最后祝愿各位老哥哥順利上架App Store