-
Notifications
You must be signed in to change notification settings - Fork 109
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 build problem #71
Comments
EDIT: Nope, back at it
EDIT 2: |
Facing the same issue on RN new architecture |
same here |
same issue |
Same here @indrajit-roy-sc @Degan90 @dkahdwk Any solution??? |
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
@@ -1,13 +1,13 @@
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
-#elif __has_include("RCTBridgeModule.h")
-#import "RCTBridgeModule.h"
+#elif __has_include(<React/RCTBridgeModule.h>)
+#import <React/RCTBridgeModule.h>
#else
-#import "React/RCTBridgeModule.h"
+#import <React/RCTBridgeModule.h>
#endif
#if RCT_NEW_ARCH_ENABLED
-#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h>
+#import <ReactCodegen/RNExitAppSpec/RNExitAppSpec.h>
#endif
@interface RNExitApp : NSObject <RCTBridgeModule> You can run that patch. from: to: |
@dkahdwk Thanks for the help. Ran in to some errors and fixed by this flow. I will keep it if someone get this issue. Patch is applied.
And I have replace manually pod file import. After doing that it gives following error.
Solution from above error ⬇️
|
+1 |
2 similar comments
+1 |
+1 |
+1 |
Am on |
Incase you need to patch diff --git a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
index 50a2135..4a598a3 100644
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
@@ -7,7 +7,7 @@
#endif
#if RCT_NEW_ARCH_ENABLED
-#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h>
+#import <ReactCodegen/RNExitAppSpec/RNExitAppSpec.h>
#endif
@interface RNExitApp : NSObject <RCTBridgeModule>
diff --git a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
index bec5948..f2a8743 100644
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
@@ -3,7 +3,7 @@
#import "RNExitApp.h"
#if RCT_NEW_ARCH_ENABLED
-#import <RNExitAppSpec/RNExitAppSpec.h>
+#import <ReactCodegen/RNExitAppSpec/RNExitAppSpec.h>
#endif
@implementation RNExitApp |
Mmm is the changes to |
Well for some reason it never worked for me without patching .m file. Xcode complained about not able to find this package. |
Hello,
I am facing a problem with iOS build.
Currenlty I am using RN 0.73.2 and I need to build the app with static framework, so I am not 100% sure what the problem could be (if the newest Rn release or the static framework) anyway I got this error in
RNExitApp.h
'React-Codegen/RNExitAppSpec/RNExitAppSpec.h' file not found` at line 10
The error disappear (and I am able to build my app) if I change the line to
#import <RNExitAppSpec/RNExitAppSpec.h>
so probably it is just necessary to update the code.I can open PR if you want.
Thanks
The text was updated successfully, but these errors were encountered: