react-native-exit-app icon indicating copy to clipboard operation
react-native-exit-app copied to clipboard

error: no such file or directory: libRNExitApp.a

Open DorianMazur opened this issue 2 years ago • 2 comments

When I try to build and app with export type appstore, it's failing with this error:

clang: error: no such file or directory: '/Users/dorianmazur/Library/Developer/Xcode/DerivedData/HSEHealth-dfpjysdkkzjanwawxbicvhdzbohw/Build/Intermediates.noindex/ArchiveIntermediates/HSEHealth/BuildProductsPath/Release-appletvos/libRNExitApp.a'

DorianMazur avatar Jan 24 '24 13:01 DorianMazur

When I try to build and app with export type appstore, it's failing with this error:

clang: error: no such file or directory: '/Users/dorianmazur/Library/Developer/Xcode/DerivedData/HSEHealth-dfpjysdkkzjanwawxbicvhdzbohw/Build/Intermediates.noindex/ArchiveIntermediates/HSEHealth/BuildProductsPath/Release-appletvos/libRNExitApp.a'

How were you able to solve it?

akruz97 avatar Aug 12 '24 15:08 akruz97

We removed this package

DorianMazur avatar Aug 13 '24 10:08 DorianMazur

This is work for me.

  1. Before running pod install, set RCT_NEW_ARCH_ENABLED=1 example: RCT_NEW_ARCH_ENABLED=1 pod install
  2. Modify RNExitApp.mm Open this file: [my-project]/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm Replace the import statement: #import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h> to #import <ReactCodegen/RNExitAppSpec/RNExitAppSpec.h>
  3. Modify RNExitApp.h Open this file: [my-project]/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h Replace the import statement: #import <RNExitAppSpec/RNExitAppSpec.h> to #import <ReactCodegen/RNExitAppSpec/RNExitAppSpec.h>

Treetospons avatar Nov 15 '24 06:11 Treetospons

We removed this package

@DorianMazur What is your alternative solution?

VimukthiShohan avatar Nov 28 '24 08:11 VimukthiShohan