Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use the original OpenSSL.xcprivacy file, rather than including one wi…
…th Python itself.
  • Loading branch information
freakboy3742 committed Sep 27, 2025
commit ba3d4084f3241428d6b1ea4eb30dd6bad1ec0750
18 changes: 9 additions & 9 deletions Apple/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def unpack_deps(
for name_ver in [
"BZip2-1.0.8-2",
"libFFI-3.4.7-2",
"OpenSSL-3.0.16-2",
"OpenSSL-3.0.17-1",
"XZ-5.6.4-2",
"mpdecimal-4.0.0-2",
"zstd-1.5.7-1",
Expand Down Expand Up @@ -648,19 +648,19 @@ def create_xcframework(platform: str) -> str:
slice_framework / f"Headers/pyconfig-{arch}.h",
)

# Apple identifies certain libraries as "security risks"; OpenSSL is
# one of those libraries. Since we have statically linked OpenSSL into
# dynamic libraries that will be converted into frameworks when an
# application is built, we are also responsible for providing
# .xcprivacy files for those frameworks.
# Apple identifies certain libraries as "security risks"; if you
# statically link those libraries into a Framework, you become
# responsible for providing a privacy manifest for that framework.
xcprivacy_file = {
"OpenSSL": subdir(host_triple) / "prefix/share/OpenSSL.xcprivacy"
}
print(f" - {multiarch} xcprivacy files")
for module, privacy in [
for module, lib in [
("_hashlib", "OpenSSL"),
("_ssl", "OpenSSL"),
]:
shutil.copy(
PYTHON_DIR
/ f"Apple/{platform}/Resources/{privacy}.xcprivacy",
xcprivacy_file[lib],
slice_path
/ f"lib-{arch}/python{version_tag}/lib-dynload/{module}.xcprivacy",
)
Expand Down
23 changes: 0 additions & 23 deletions Apple/iOS/Resources/OpenSSL.xcprivacy

This file was deleted.

Loading