You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the checksum from cocoapods is generated from the output of pod ipc spec ../node_modules/react-native-skottie/react-native-skia-skottie.podspec - you can run it from the SkottiePodsIssue as yarn podipc and it will write the output to a pod.json file at the root.
I would suggest to use the ${PROJECT_DIR} env variable that is available during the iOS build phase as suggested here https://stackoverflow.com/a/33359337. However I'm not sure this would work with prepare_command.
If you want to I can create a PR with this change :)
The text was updated successfully, but these errors were encountered:
Hi!
We are facing an issue that is preventing us from adding Skottie to our project.
Steps to reproduce from scratch
yarn add react-native-skottie
yarn add @shopify/react-native-skia
(cd ios && bundle exec pod install)
(cd ios && bundle exec pod install)
Expectation: No change in Podfile.lock
Actual behaviour: checksum for pod
react-native-skia-skottie
has changes in Podfile.lockThis is a problem for us for 2 reasons:
bundle exec pod install
they have a file change in gitReproduce the issue quickly with this repo
yarn
andbundle install
(cd ios && bundle exec pod install)
Investigation
I believe the checksum from cocoapods is generated from the output of
pod ipc spec ../node_modules/react-native-skottie/react-native-skia-skottie.podspec
- you can run it from the SkottiePodsIssue asyarn podipc
and it will write the output to apod.json
file at the root.When running the command, I see that it includes the absolute path where the project is located on the machine (
/Users/me/SkottiePodsIssue
in the exemple below): https://github.com/louiszawadzki/SkottiePodsIssue/blob/main/pod.jsonThis is because we use the absolute path to react-native-skia in the podspec: https://github.com/margelo/react-native-skottie/blob/main/package/react-native-skia-skottie.podspec#L7
Proposed solution
I would suggest to use the
${PROJECT_DIR}
env variable that is available during the iOS build phase as suggested here https://stackoverflow.com/a/33359337. However I'm not sure this would work withprepare_command
.If you want to I can create a PR with this change :)
The text was updated successfully, but these errors were encountered: