嘗試應用程序上傳到itunesconnected但得到這個錯誤:錯誤上傳iOS的二進制:非公開API的使用
Non-public API usage:
The app references non-public symbols in B: _dispatch_benchmark
我該如何解決這個問題?
嘗試應用程序上傳到itunesconnected但得到這個錯誤:錯誤上傳iOS的二進制:非公開API的使用
Non-public API usage:
The app references non-public symbols in B: _dispatch_benchmark
我該如何解決這個問題?
你的應用中是否使用dispatch_benchmark()
?它是私人API,不能用於運輸應用程序。除此之外,無論如何,您都不應該在運輸應用中設置基準代碼 - 將調試內容保存在調試版本中。幸運的是,你可以使用預處理程序刪除發佈違規代碼只依據:
#ifdef DEBUG
//Your debug-only code, including dispatch_benchmark(), here
#endif
不,我不使用它,所以這很奇怪,蘋果從未抱怨過這件事。可能是IOS9 bugg,或者我的一些Pod有它? – BlackMouse
我想如果你不是直接使用它的話,它就是在使用它。 – andyvn22
看看這裏:http://nshipster.com/benchmarking/有關於它的幾行字,可能的幫助。 – BoilingLime