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

App available memory not tracked in platform context because can't import Obj-C header #772

Open
matus-tomlein opened this issue May 5, 2023 · 0 comments

Comments

@matus-tomlein
Copy link
Contributor

To calculate the available memory statistic that is added in platform context, the tracker used the os_proc_available_memory() API provided on iOS. However, accessing this API requires that the Obj-C header for #include <os/proc.h> is added to the project.

This is not possible under the current project setup as SPM does not allow mixed Swift and Obj-C code in one target. I don't see any easy workarounds at the moment. We could add another Obj-C target to the project that would only surface this information and would be imported by the Swift target.

As of now, the information is not tracked in the v5 tracker.

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

1 participant