You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may also [download this script](https://github.com/JetBrains/kotlin/blob/rrf_v0.0.1/libraries/tools/required-reason-finder/required_reason_finder.py)
76
+
separately, inspect it, and run it using `python3`.
77
+
78
+
## Place the `.xcprivacy` file in your Kotlin artifacts
79
+
80
+
If you need to bundle the `PrivacyInfo.xcprivacy` file with your Kotlin artifacts, use the `apple-privacy-manifests` plugin:
The plugin will copy the privacy manifest file to the [corresponding output location](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/adding_a_privacy_manifest_to_your_app_or_third-party_sdk?language=objc).
98
+
99
+
## Known usages
100
+
101
+
### Compose Multiplatform
102
+
103
+
Using Compose Multiplatform may result in `fstat`, `stat` and `mach_absolute_time` usages in your binary.
104
+
Even though these functions are not used for tracking or fingerprinting and are not sent from the device, Apple can still
105
+
flag them as APIs with missing required reasons.
106
+
107
+
If you must specify a reason for `stat` and `fstat` usages, use `0A2A.1`. For `mach_absolute_time`, use `35F9.1`.
108
+
109
+
For further updates on required reasons APIs used in Compose Multiplatform, follow [this issue](https://github.com/JetBrains/compose-multiplatform/issues/4738).
110
+
111
+
### Kotlin/Native runtime in versions 1.9.10 or earlier
112
+
113
+
The `mach_absolute_time` API is used in the `mimalloc` allocator in the Kotlin/Native runtime. This was the default
114
+
allocator in Kotlin 1.9.10 and earlier versions.
115
+
116
+
We recommend upgrading to Kotlin 1.9.20 or later versions. If the upgrade is impossible, change the memory allocator.
117
+
To do that, set the `-Xallocator=custom` compilation option in your Gradle build script for the current Kotlin allocator
118
+
or `-Xallocator=std` for the system allocator.
119
+
120
+
For more information, see [Kotlin/Native memory management](native-memory-manager.md).
0 commit comments