menu icon indicating copy to clipboard operation
menu copied to clipboard

Build fails for iOS on [email protected] with newArchEnabled and useFrameworks = static

Open Kasendwa opened this issue 3 months ago • 14 comments

Hi! First of all, thanks for the wonderful work on this package.

I have failed to make a build with [email protected], newArchEnabled = true and useFrameworks = "static"

The error is as shown below

Compiling @react-native-menu/menu Pods/react-native-menu » MenuViewManager.mm
› Compiling @react-native-menu/menu Pods/react-native-menu » MenuView.mm

❌  (node_modules/@react-native-menu/menu/ios/NewArch/MenuView.mm:2:9)

  1 | #ifdef RCT_NEW_ARCH_ENABLED
> 2 | #import <react_native_menu-Swift.h>
    |         ^ 'react_native_menu-Swift.h' file not found
  3 | #import "MenuView.h"
  4 | 
  5 | #import <react/renderer/components/RNMenuViewSpec/ComponentDescriptors.h>

› Preparing react-native Pods/React-RCTImage » React-RCTImage-Info.plist

I am using @react-native-menu/[email protected]

Kasendwa avatar May 08 '24 21:05 Kasendwa