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.

just updated to xcode 14.2 and am getting the same exact error: The app references non-public selectors in Payload/.... I don't have anything with Core Data. The binary is not uploaded to App Center.

Same here, shows errors, but DOES upload to AppstoreConnect. It's just a warning after all ;)

Still happening in Xcode 14.2

xcode 14.2 unity2019 exported project, still the same issue.

This problem got resolved for me in xcode 14.3

I had this issue trying to upload to TestFlight using Fastlane. My issue was that I had set the build_app configuration to Debug instead of release. I guess Testflight does not allow the debug to be active. Changing it to Release fixed the issue and I could upload it.

Not working:

lane :build_alpha_release do
  match(type: "appstore")
  build_app(
    scheme: "YourScheme",
    export_method: "app-store",
    configuration: "Debug",  # This wont work
  )
end

Working:

lane :build_alpha_release do
  match(type: "appstore")
  build_app(
    scheme: "YourScheme",
    export_method: "app-store",
    configuration: "Release", # This works
  )
end
Xcode 14 - The app references non-public selectors in Payload
 
 
Q