Thursday, March 23, 2023
HomeiOS DevelopmentReact-Native -IOS Construct - Noop-file.m not discovered

React-Native -IOS Construct – Noop-file.m not discovered


Right this moment is day 4 of making an attempt improve my tasks libraries for my react-native mission. No thought if I get nearer, however todays error isn’t present in any google searches I’ve made. Upon constructing I get this error:

.../noop-file.m Construct enter file can't be discovered: '/Customers/userxyz/product_abc/node_modules/expo-updates-interface/ios/EXUpdatesInterface/noop-file.m'. Did you overlook to declare this file as an output of a script part or customized construct rule which produces it?

Has anybody seen this earlier than and know what might be the issue?

This appeared after I up to date my delegate recordsdata. right here they’re:

AppDelegate.h

#import <UIKit/UIKit.h>
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
#import <React/RCTBridgeDelegate.h>
#import <UMCore/UMAppDelegateWrapper.h>

@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate>

@property (nonatomic, robust) UMModuleRegistryAdapter *moduleRegistryAdapter;
@property (nonatomic, robust) UIWindow *window;

@finish

AppDelegate.m

#import "AppDelegate.h"

#import <React/RCTLinkingManager.h>

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

#import <UMCore/UMModuleRegistry.h>
#import <UMReactNativeAdapter/UMNativeModulesProxy.h>
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>

@implementation AppDelegate

@synthesize window = _window;

- (BOOL)software:(UIApplication *)software didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"YourAppName" initialProperties:nil];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f inexperienced:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];

  [super application:application didFinishLaunchingWithOptions:launchOptions];

  return YES;
}

- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
{
  NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge];
  // You may inject any additional modules that you desire to right here, extra data at:
  // https://fb.github.io/react-native/docs/native-modules-ios.html#dependency-injection
  return extraModules;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
#ifdef DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
  return [[NSBundle mainBundle] URLForResource:@"essential" withExtension:@"jsbundle"];
#endif
}

#if RCT_DEV
- (BOOL)bridge:(RCTBridge *)bridge didNotFindModule:(NSString *)moduleName {
  return YES;
}
#endif


- (BOOL)software:(UIApplication *)app openURL:(NSURL *)url choices:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)choices
{
  return [RCTLinkingManager application:app openURL:url options:options];
}

@finish

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments