Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of CGSRegionRelease in core-graphics prevents publishing to the Mac AppStore #656

Open
wooden-worm opened this issue Feb 22, 2024 · 1 comment

Comments

@wooden-worm
Copy link

wooden-worm commented Feb 22, 2024

My app got rejected from the Mac AppStore with the following message:

Guideline 2.5.1 - Performance - Software Requirements

Your app uses or references the following non-public or deprecated APIs:

Contents/MacOS/***
Symbols:
• _CGSRegionRelease

The use of non-public or deprecated APIs is not permitted on the App Store, as they can lead to a poor user experience should these APIs change and are otherwise not supported on Apple platforms.

I believe the offending code is here:

unsafe { ffi::CGSRegionRelease(self.region) }

I haven't found any workaround yet, any help would be greatly appreciated.

@madsmtm
Copy link
Contributor

madsmtm commented Feb 22, 2024

These were introduced in servo/core-graphics-rs#50.

There is no workaround other than not using the private APIs CGSRegion/CGSSurface anywhere in your code.

Perhaps you have a dependency somewhere that's using them? To find out, I'd suggest you clone the repo, remove the private module, and add the repo in a [patch.crates-io] section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants