没用私有API但因为私有API被拒

今天App上传,传了N个版本,因为网络或者其他种种原因最后成功上传一个,却提示二进制文件无效!
后来发现苹果的邮件显示使用了私有API:
Dear developer,
We have discovered one or more issues with your recent delivery for "惠众经纪". To process your delivery, the following issues must be corrected:
Non-public API usage:
  • The app references non-public selectors in hzbroker: setCenterPoints:, setCities:, setCurrentCount:, setDetailType:, setGeometryDelegate:, setStrategy:, setTotalCount:
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.
If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview@apple.com. For further information, visit the Technical Support Informationpage.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
后来百度了一下发现这些API是第三方库里面用到的函数(百度地图API!!!)
解决方案:如下图加上-ObjC(大小写要正确!)

评论

此博客中的热门博文

使__attribute__((annotate("xxx")))能作用于OC函数

viewWillAppear不执行的解决办法

iOS中使用xpc/xpc.h