iosnon-public-selectors

Non-public selectors


Got the following warning when trying to validate my binary. "The app references non-public selectors in Payload/app.app/app: cache, decoder, hasPhotoType" Problem is I don't know how to get to "Payload/app.app". Pretty sure I am not using "hasPhotoType" anywhere in my codes, ie, I cannot locate "hasPhotoType" using Xcode search functionality.

Strangely, I am not getting the warning error when I am in normal window. Only when I tried to "validate" the binary, then I get the above warning


Solution

  • I had the same problem after building my app for iOS 7 by Xcode 5.

    "The app references non-public selectors in Payload/app.app/app: cache, hasPhotoType"

    There is no such thing as 'hasPhotoType' in my code anywhere, but I am using Google Map SDK for iOS which is the only non-Apple library that exists in my project. I removed the framework, rebuild the app and it passed validation without any warnings.

    Hope this information could help you.