iOS: RiveRuntimeIOSVersion in ios/Podfile.properties.json is ignored (podspec reads it from node_modules)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- ios, react-native, ruby
- Ambito
- build-system, mobile
Direzione di ricerca
Leggi rive-react-native.podspec e segui il modo in cui risolve Podfile.properties.json e la versione di fallback. Controlla la sezione «Native version customization» del README per confermare il comportamento documentato. Aggiorna la ricerca della proprietà in modo che pod install usi la directory del Podfile dell'app, quindi verifica che venga selezionata la versione configurata dell'SDK iOS invece di quella predefinita del pacchetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 789
- Fork
- 81
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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 rive-app/rive-react-native
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
rive-app/rive-react-native#431 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
rive-app/rive-react-native#449 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
rive-app/rive-react-native#448 · 2 commenti · 1 reazione ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR)Forse già presa @Togetic l’ha presa 69 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
rive-app/rive-react-native#444 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
rive-app/rive-react-native#441 ·
Tutte le issue di rive-app/rive-react-native
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
complexity:simple priority:P3 ready-to-build
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
junruxiong/IncarnaMind#2919 ·
-
Runner API: GET /api/jobs/<id> returns branch: null; the branch only appears under input.branchAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
radiancelux/prgenie#204 ·
I maintainer di solito rispondono entro 1 giorno
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
cqframework/vscode-cql#198 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
WalletConnect/walletconnect-monorepo#7392 · 1 commento ·