Privacy manifests are dropped from static XCFrameworks
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 47/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- build-system
Direzione di ricerca
Start by reading the reverted changes in pull requests #3092 and #3103, then trace how rules_apple packages static XCFrameworks for non-macOS targets. Check how framework contents and nested bundles are copied, and compare the result with Xcode's behavior described in the issue. Done means privacy manifests from static XCFrameworks are present in the app bundle without restoring the regression from #3092.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
From https://github.com/bazelbuild/rules_apple/pull/3092:
Since Xcode 15, when an app links a static framework XCFramework (via "Embed & Sign" or an SPM binaryTarget), Xcode still links the static library into the app, but also embeds the framework bundle in Frameworks/:
- Headers, PrivateHeaders, Modules, *.tbd and the static binary are excluded (builtin-copy … -remove-static-executable).
- An empty dylib is injected as the framework binary ("Injecting stub binary into codeless framework"), built for the app's deployment target, then signed like any embedded framework.
- Everything else is kept in place, including PrivacyInfo.xcprivacy and nested .bundle directories.
rules_apple currently drops these frameworks entirely, keeping only nested .bundle directories, copied to the app root. As a result, the privacy manifests of SDKs shipped as static XCFrameworks (e.g. Sentry, Braze) never make it into the app.
Unfortunately https://github.com/bazelbuild/rules_apple/pull/3092 got reverted in https://github.com/bazelbuild/rules_apple/pull/3103, so privacy manifests are still being dropped.
As a workaround I'm currently copying each static framework's top-level PrivacyInfo.xcprivacy into a <framework>_Privacy.bundle at the root of the app. While this is similar to what some Pods do (like Firebase), this^ approach is better as it matches what Xcode does.
I'm wondering if embedding only unversioned frameworks for non-macOS targets would be enough to revive that PR? That should resolve the regression that was introduced in https://github.com/bazelbuild/rules_apple/pull/3092
- Lingua principale
- Starlark
- Stelle
- 600
- Fork
- 354
- Merge medio
- 2g 7h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bazelbuild/rules_apple
-
`ios_xctestrun_runner` skips the simulator cleanup action on early exits and signalsForse già presa @katre l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
bazelbuild/rules_apple#3163 ·
I maintainer di solito rispondono entro 1 giorno
-
register_binary_linking_action links with the GCC coverage map format under coverageForse già presa @TrapsterDK l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
bazelbuild/rules_apple#3160 ·
I maintainer di solito rispondono entro 1 giorno
-
Registered toolchains load //apple/internal and its dependencies in every buildForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
bazelbuild/rules_apple#3158 ·
I maintainer di solito rispondono entro 1 giorno
-
Simulator cleanup is skipped when the post-action failsForse già presa @vakhidbetrakhmadov l’ha presa 15 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
bazelbuild/rules_apple#3147 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
bazelbuild/rules_apple#3139 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bazelbuild/rules_apple
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
avaje/avaje-metrics#142 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
bazelbuild/apple_support#707 ·
I maintainer di solito rispondono entro 1 giorno
-
Security gate is red on mainApertasecurity
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nimbus-agent/Nimbus#2319 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nextjournal/clerk#830 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100