margelo / react-native-skottie

▶️ Efficient lottie animations using Skia's Skottie module
https://margelo.io
MIT License
864 stars 24 forks source link

'RNSkInfoParameter.h' file not found with Firestore at IOS #59

Open blueromans opened 3 days ago

blueromans commented 3 days ago

Description

Im getting 'RNSkInfoParameter.h' file not found error when I try to use with Firestore. I tried difficult version combination however I couldn't build. Current version 1.5.0 and react-native-skottie: 2.1.4

Version

2.1.4

Steps to reproduce

Add firestore and react-native-skottie to project

Snack, code example, screenshot, or link to a repository

"dependencies": {
    "@openspacelabs/react-native-zoomable-view": "^2.1.6",
    "@react-native-community/datetimepicker": "^8.2.0",
    "@react-native-firebase/app": "^21.2.0",
    "@react-native-firebase/firestore": "^21.2.0",
    "@react-native-firebase/messaging": "^21.2.0",
    "@react-native-masked-view/masked-view": "^0.3.0",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/stack": "^6.3.20",
    "@reduxjs/toolkit": "^2.2.8",
    "@sentry/react-native": "^5.33.2",
    "@shopify/flash-list": "^1.7.1",
    "@shopify/react-native-skia": "^1.5.0",
    "@tanstack/react-query": "^5.8.9",
    "date-fns": "^4.1.0",
    "i18next": "^23.7.7",
    "ky": "^1.1.3",
    "react": "^18.3.1",
    "react-hook-form": "^7.53.0",
    "react-i18next": "^13.5.0",
    "react-native": "^0.75.4",
    "react-native-alert-notification": "^0.4.0",
    "react-native-device-info": "^13.1.0",
    "react-native-element-dropdown": "^2.12.2",
    "react-native-gesture-handler": "^2.14.0",
    "react-native-image-picker": "^7.1.2",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-mmkv": "2.11.0",
    "react-native-modal-datetime-picker": "^18.0.0",
    "react-native-pager-view": "^6.4.1",
    "react-native-reanimated": "3.15.5",
    "react-native-safe-area-context": "^4.7.4",
    "react-native-screens": "^3.27.0",
    "react-native-skottie": "^2.1.4",
    "react-native-svg": "^15.8.0",
    "react-native-vector-icons": "^10.2.0",
    "react-native-video": "^6.7.0",
    "react-native-video-controls": "^2.8.1",
    "react-redux": "^9.1.2",
    "redux": "^5.0.1",
    "redux-persist": "^6.0.0"
  },

Podfile

pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseFirestoreInternal', :modular_headers => true
PrinceUBS commented 3 days ago

+1

PrinceUBS commented 3 days ago
Screenshot 2024-10-23 at 5 59 09 PM
PrinceUBS commented 2 days ago

Facing same issue on Android as well.

i have enabled def enableProguardInReleaseBuilds = true

but also added following rule in proguard-rules.pro:

# for skia, if you haven't add it
-keep class com.shopify.reactnative.skia.** { *; }

# for skottie
-keep class com.skiaskottie.** { *; }
Screenshot 2024-10-24 at 10 27 59 AM

If you have any ideas, @hannojg and @mrousavy , please share them with us.