-
Notifications
You must be signed in to change notification settings - Fork 242
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
iOS app is not building with new architecture in react native 0.72.6 #302
Comments
Yeah, the project does not currently support the new architecture. If you'd like to follow along, we're tracking support for this in #293. |
Hi @lindboe , |
@mhsfh if you're not using the new architecture, which is not required by recent react native, you can use the latest version of react native with a few patches to this library (using patch-package). Check out the list in Phase 0 for the PRs that fix those issues, you can copy their fix as a patch for now: #294 |
@lindboe I made it work, thank you so much 🙏 |
Can you describe the path you fallowed? |
for android I had to apply this patch: diff --git a/android/build.gradle b/android/build.gradle
index 9557fdbf2fbf97b7f7aeaf7ce86d301a8ced213d..8adad42908c0d73c535c30f01c5437e2a7d9f33f 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'
android {
- compileSdkVersion 29
+ compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion "29.0.2"
defaultConfig { are you facing ios errors? |
Yeah, I've been trying to get this package to work on iOS for several days. I've experimented with different React Native versions, various projects, and different paths, but unfortunately, I haven't had any luck with it. |
@EKOzkan am using react-native-share-menu 6.0.0 with react-native 0.72.6. what issue are you facing? |
Hello @singh-sukhmanjit here to me I'm facing with "'RNShareMenu-Swift.h' file not found" message when I try build iOS. React-Native 0.72 It's happen in file "node_modules/react-native-share-menu/ios/ShareMenuManager.m" line 9: #import "RNShareMenu-Swift.h" Where is this file? |
Found Pull Request #260 witch fixes this issue: |
So it works for you with the new arch enabled? |
Has someone made it work with Expo? I am using Expo Dev Client. |
I'm running the App on iOS 17.4 with React native v0.73.6.
|
@lindboe hey, are you all still supporting this lib? |
Hi @jorgegvallejo, my team at Infinite Red is no longer working on this project and I'm personally not sure of future plans for it. Any questions about this repository will need to be directed to Expensify. If you have questions on the Infinite Red team's prior work and want to talk with us directly, you can reach us via our website form or our community slack. |
I had some issues with RN 0.74, so this patch solve them |
im still having trouble building ios I applied @HugoGresse patch. then
any ideas? Other clarification questions
|
I had no issue with RN 0.72 and 0.73 with the current share-menu version. |
React Native 0.72.6
Xcode 15
New architecture enabled
App builds successfully with old architecture but gives following error with new architecture while building -
Below is the podspec for Share Extension
The text was updated successfully, but these errors were encountered: