-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicate codegen spec for video compression #305
base: main
Are you sure you want to change the base?
Conversation
- Removes RNVideoCompressorSpec from codegenConfig in package.json - Resolves duplicate symbol issues during iOS builds (numandev1#293) - Maintains full functionality including video compression on ios
This PR solves issue #293 |
@jpancotti can you confirm if it has backward compatibility or not ? |
I apply this change using |
For those who can't wait, here's a patch-package:
diff --git a/node_modules/react-native-compressor/package.json b/node_modules/react-native-compressor/package.json
index 8adf7dc..8dd43a6 100644
--- a/node_modules/react-native-compressor/package.json
+++ b/node_modules/react-native-compressor/package.json
@@ -197,11 +197,6 @@
"name": "RNCompressorSpec",
"type": "modules",
"jsSrcsDir": "src"
- },
- {
- "name": "RNVideoCompressorSpec",
- "type": "modules",
- "jsSrcsDir": "src"
}
]
} |
any plan on merging it soon? that would be amazing. On the other hand, I almost having 6 duplicate symbols, and when I export the logs I see: duplicate symbol '__ZN8facebook5react23NativeCompressorSpecJSIC2ERKNS0_15ObjCTurboModule10InitParamsE' in: should I further edit the package.json? EDIT: actually the patch wasn't taken into account for some reason; had to rimraf my node module, reinstall and all good, thanks guys! |
Confirming I have the same issue after upgrading to Expo 52 (project is building after I apply the patch) |
Summary
This PR addresses an issue where iOS builds were failing due to duplicate symbols. The root cause was traced to the presence of two separate codegen specs in the package.json file: RNCompressorSpec and RNVideoCompressorSpec.
It appears that the RNCompressorSpec is sufficient to generate the necessary native code for both image and video compression. The separate RNVideoCompressorSpec was causing duplication in the generated code, leading to build failures.
This change simplifies the package configuration without compromising functionality. It's recommended to thoroughly test this change across different React Native versions and build configurations to ensure there are no unintended side effects.
Changelog
Test Plan