wumke / react-native-exit-app

Exit,close,kill,shutdown app completely for React Native on iOS and Android.
MIT License
387 stars 102 forks source link

iOS build problem #71

Open Francesco-Voto opened 9 months ago

Francesco-Voto commented 9 months ago

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

#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h> 

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

dimisus commented 1 month ago

I had the same, forcefully updated to 2.0.0. Reinstalled the pods. And it magically started working (rn 0.75.3).

EDIT: Nope, back at it

#if RCT_NEW_ARCH_ENABLED
#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h>
'React-Codegen/RNExitAppSpec/RNExitAppSpec.h' file not found

EDIT 2: cd ios && pod install will install it, it seems it is not installed when RCT_NEW_ARCH_ENABLED=1 pod install

indrajit-roy-sc commented 3 days ago

Facing the same issue on RN new architecture