Skip to content

App Store Rejection due to Non-Public / Deprecated APIs (Guideline 2.5.1) #7121

@Nitin-UpSwing

Description

@Nitin-UpSwing

Platform

iOS

Environment

Production

Installed

Swift Package Manager

Version

Latest

Xcode Version

15.4

Did it work on previous versions?

Yes

Steps to Reproduce

We are facing an App Store rejection and believe it is related to Sentry. We’d appreciate your help resolving the issue.

App Store Rejection Details

Apple rejected our app under the following guideline:

Guideline 2.5.1 – Performance – Software Requirements

Apple reports that the app uses or references non-public or deprecated APIs, which is not permitted.

Flagged Classes:

_TtC7SwiftUIP33_A34643117F00277B93DEBAB70EC0697122_UIShapeHitTestingView__SwiftValue

According to Apple, usage of non-public or deprecated APIs can lead to poor user experience if those APIs change and is therefore not supported on Apple platforms.

Apple’s Suggested Next Steps

Revise the app binary and remove references to the identified non-public or deprecated APIs.

Update all third-party libraries to their latest versions.

If the source code of a dependency is not accessible, use tools such as:

strings – to list methods called by a library


This is used in sentry iOS, here is the screenshot of related file

Image

Here is file link:

redactClasses.insert(ClassIdentifier(classId: "_TtC7SwiftUIP33_A34643117F00277B93DEBAB70EC0697122_UIShapeHitTestingView"))

Expected Result

We should able to upload our app without any issue

Actual Result

Facing an App Store rejection

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions