Investigate why app & system extension shared dependencies fail to embed
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- swift
- Área
- build-system, desktop
Línea de trabajo
Comienza reproduciendo los fallos de la compilación de lanzamiento descritos en los issues #145, #98 y #143, centrándote en las dependencias compartidas por los targets de extensión del sistema de App y VPN. Prepara un ejemplo mínimo reproducible que muestre el framework integrado que falta y, después, documenta el resultado para los Apple Developer Forums y Feedback Assistant, tal como se describe en el issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In both #145 and #98, I've encountered an issue with release builds of the app. These issues arose when a dependency was required by both the App target (or any of it's dependencies), and the system extension target (and any of it's dependencies).
In #98, the issue occurred when protobuf definitions were added directly to the app target, or a new framework target that would be depended on by the app target. They were previously working fine being depended on by just VPNLib (which the system extension depends on).
In the first case, the network extension would crash. In the second case, the app would crash.
The crash reason was:
Library not loaded: @rpath/SwiftProtobuf.framework/Versions/A/SwiftProtobuf
Other users have reported this issue https://github.com/apple/swift-protobuf/issues/1506#issuecomment-2435125065
In #143, the issue occured when InternalCollectionsUtilities was depended on by both the App target, and the VPN target (via another framework, VPNLib). When a library that depended on swift-collections was added to the app target, the network extension would crash on startup with the error:
Library not loaded: @rpath/InternalCollectionsUtilities.framework/Versions/A/InternalCollectionsUtilities
FWICT, xcode is making some form of optimisation where it constructs a framework for code shared between two different targets. This poses an issue with a system extension, which is copied and executed outside of the app bundle. A copy of the system extension always lives in the app bundle, so it's trivial for the app to depend on a framework present within the system extension bundle (we already do this), but not the other way around. If there was some way to tell xcode to embed this new framework within the system extension bundle, we wouldn't have this issue.
Instead, the workaround we've gone with is to simply put everything that would cause this issue in VPNLib, as to minimise the number of times we depend on any one package.
This issue doesn't require immediate action, and is more so for book-keeping. It would be good to post this alongside an MRE on the Apple developer forums and in Apple feedback assistant.
- Lenguaje dominante
- Swift
- Estrellas
- 29
- Forks
- 9
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de coder/coder-desktop-macos
-
Authentication fails with invalid TLS certificate error on self-hosted Coder deployment (macOS)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
coder/coder-desktop-macos#285 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
coder/coder-desktop-macos#230 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
coder/coder-desktop-macos#221 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 Medio día Aptitud para principiantes 48/100
coder/coder-desktop-macos#220 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
coder/coder-desktop-macos#212 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de coder/coder-desktop-macos
Issues similares
-
area:shell order:5 status:ready type:bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
krystianslowik/arkt#899 ·
Los mantenedores suelen responder en 1 día
-
help wanted roadmap tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
🐞 bug 💠 component 🔍 triage v4 🧰 library
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Orange-OpenSource/ouds-ios#1875 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
521xueweihan/HelloGitHub#4295 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100