Xcode 14 - The app references non-public selectors in Payload

Hi,

I have submitted my app to TestFlight but I did receive a warning message:

The app references non-public selectors in Payload/AppNAME: dataChanged

I tried to investigate the issue but can't find a solution 🤨

Any idea?

Answered by med009 in 728964022

The problem comes from Apple. my app was approved on the Appstore without any issue.

It's a bug in the validation that runs on the backend. It's a warning, not an error, so binary distribution is possible.

I've already filed a bug on the Feedback Assistant (FB11488329) for this issue.

https://developer.apple.com/forums/thread/713574

Thanks @mario25 for you answer.

Same thing here, with different selector names.

I have the same warning here with one of my apps.

Same thing for selectors: placeID and sessionDelegate

I am having the same issue, and the app version is not showing up in TestFlight.

Accepted Answer

The problem comes from Apple. my app was approved on the Appstore without any issue.

I have the same warning , but how to fix it?

I don't think you can. Just ignore it. Anyway it's just a warning.

How can I ignore it? the build was not accepted, not even showing up in TestFlight.

I have the same question.

This problem occurs even with CoreData generated source code. For example the following extension (generated from Xcode) causes similar warnings:


extension FolderItem {



    @objc(addItemsObject:)

    @NSManaged public func addToItems(_ value: FavoriteItem)



    @objc(removeItemsObject:)

    @NSManaged public func removeFromItems(_ value: FavoriteItem)



    @objc(addItems:)

    @NSManaged public func addToItems(_ values: NSSet)



    @objc(removeItems:)

    @NSManaged public func removeFromItems(_ values: NSSet)



}

The warnings are related to the following lines: @objc(addItemsObject:) @objc(removeItemsObject:) @objc(removeItems:)

This is all generated code from Xcode.

I have the same issue today

On my side getting similar error:

The app references non-public selectors in Payload/CICD.app/CICD: determineAppInstallationAttributionWithCompletionHandler:, lookupAdConversionDetails:, transform:

Same problem with 14.2 error is The app references non-public selectors in Payload/myapp.app/myapp: fontWeight

Was working fine on previous release.

Binary does not get uploaded to App Store/Test Flight.

Xcode 14 - The app references non-public selectors in Payload
 
 
Q