iOS: RiveRuntimeIOSVersion in ios/Podfile.properties.json is ignored (podspec reads it from node_modules)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- ios, react-native, ruby
- Área
- build-system, mobile
Línea de trabajo
Lee rive-react-native.podspec y sigue cómo resuelve Podfile.properties.json y la versión de respaldo. Comprueba la sección «Native version customization» del README para confirmar el comportamiento documentado. Actualiza la búsqueda de propiedades para que pod install use el directorio del Podfile de la aplicación y, después, verifica que se seleccione la versión configurada del SDK de iOS en lugar de la versión predeterminada del paquete.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
The documented way to override the Rive iOS SDK version (RiveRuntimeIOSVersion in ios/Podfile.properties.json, or withPodfileProperties in Expo — see the README's "Native version customization" section) has no effect. The podspec silently falls back to runtimeVersions.ios from the package's own package.json.
The cause is the path the podspec reads:
# rive-react-native.podspec (9.8.6, same on main)
podfile_properties_path = File.join(__dir__, "ios", "Podfile.properties.json")
__dir__ is the directory of the podspec itself, i.e. node_modules/rive-react-native, so this resolves to node_modules/rive-react-native/ios/Podfile.properties.json. That file doesn't exist in a normal install, so the app's ios/Podfile.properties.json is never read, and nothing warns about it: the Using Rive iOS SDK ... line just shows the package default (6.24.0 for 9.8.6).
(We found this by reading the podspec while setting up the override; CocoaPods evaluates a podspec with its own file path, so __dir__ is the package directory.)
(The Android side works as documented, because android/build.gradle reads Rive_RiveRuntimeAndroidVersion through Gradle project properties.)
Steps to reproduce
- Expo app with
[email protected]. - Add a config plugin that sets
RiveRuntimeIOSVersion: "6.29.0"viawithPodfileProperties(as in the README), thennpx expo prebuild. - Confirm
ios/Podfile.properties.jsoncontains"RiveRuntimeIOSVersion": "6.29.0". - Run
pod install:RiveRuntimeresolves to the package default (6.24.0), not 6.29.0.
Suggested fix
Read the file from the directory that contains the Podfile, which is where both Expo and the bare React Native template keep Podfile.properties.json:
podfile_properties_path = File.join(Pod::Config.instance.installation_root.to_s, "Podfile.properties.json")
We are currently applying exactly this change with patch-package.
Versions
- rive-react-native 9.8.6 (podspec on
mainhas the same line) - Expo SDK 58 / React Native 0.88
- Lenguaje dominante
- TypeScript
- Estrellas
- 789
- Forks
- 81
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 rive-app/rive-react-native
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
rive-app/rive-react-native#431 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
rive-app/rive-react-native#449 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
rive-app/rive-react-native#448 · 2 comentarios · 1 reacción ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR)Posiblemente ocupada @Togetic la tomó hace 69 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
rive-app/rive-react-native#444 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
rive-app/rive-react-native#441 ·
Todos los issues de rive-app/rive-react-native
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Azure/azure-functions-nodejs-extensions#180 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 2 días
-
iso-bmff: add IsoBoxReadView.readUint64 and IsoBoxWriteView.writeUint64 for exact 64-bit fieldsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
streaming-video-technology-alliance/common-media-library#611 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
prime-radiant-inc/evener#5901 ·
Los mantenedores suelen responder en 1 día
-
area:frontend kind:bug priority:p3 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día