iOS : 'folly/folly-config.h' file not found

This issue has been created since 2022-09-22.

Description

Hi, I use expo to build native application android and ios.
I have a bare workflow project and I update my expo sdk 46 from 44.
After that, I update all the modules in my package.json and when I launch expo start it’s good.

But when I try to make a build with eas build, I get two errors and I can’t fix them.
I try cleaning pods, cleaning build folder and nothing works.

image

Can you help me ?

Thanks

Version

0.69.5

Output of npx react-native info

System:
OS: macOS 12.6
CPU: (12) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
Memory: 368.16 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.13.2 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.19.2 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: 0.69.5 => 0.69.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

To reproduce this bug, I do an eas build -p ios to my project and that's it.

Snack, code example, screenshot, or link to a repository

Here we have my AppDelegate.mm :
`#import "AppDelegate.h"
// @generated begin react-native-maps-import - expo prebuild (DO NOT MODIFY) sync-f2f83125c99c0d74b42a2612947510c4e08c423a
#if __has_include(<GoogleMaps/GoogleMaps.h>)
#import <GoogleMaps/GoogleMaps.h>
#endif
// @generated end react-native-maps-import

#if defined(EX_DEV_MENU_ENABLED)
@import EXDevMenu;
#endif

#if defined(EX_DEV_LAUNCHER_ENABLED)
#include <EXDevLauncher/EXDevLauncherController.h>
#import <EXUpdates/EXUpdatesDevLauncherController.h>
#endif

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RCTLinkingManager.h>
#import <React/RCTConvert.h>
#import <UserNotifications/UserNotifications.h>
#import <RNCPushNotificationIOS.h>

#import <React/RCTAppSetupUtils.h>

#if RCT_NEW_ARCH_ENABLED
#import <React/CoreModulesPlugins.h>
#import <React/RCTCxxBridgeDelegate.h>
#import <React/RCTFabricSurfaceHostingProxyRootView.h>
#import <React/RCTSurfacePresenter.h>
#import <React/RCTSurfacePresenterBridgeAdapter.h>
#import <ReactCommon/RCTTurboModuleManager.h>

#import <react/config/ReactNativeConfig.h>

static NSString *const kRNConcurrentRoot = @"concurrentRoot";

@interface AppDelegate () <RCTCxxBridgeDelegate, RCTTurboModuleManagerDelegate> {
RCTTurboModuleManager *_turboModuleManager;
RCTSurfacePresenterBridgeAdapter *_bridgeAdapter;
std::shared_ptr _reactNativeConfig;
facebook::react::ContextContainer::Shared _contextContainer;
}
@EnD
#endif

@implementation AppDelegate

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    RCTAppSetupPrepareApp(application);

// @generated begin react-native-maps-init - expo prebuild (DO NOT MODIFY) sync-99607ce40d10e3e53111903c05b1ea58ccbd133c
#if __has_include(<GoogleMaps/GoogleMaps.h>)
[GMSServices provideAPIKey:@"AIzaSyDMg-Pv9yL1iHthNrG7ak2qLWy0Z-lEBes"];
#endif
// @generated end react-native-maps-init
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];

#if RCT_NEW_ARCH_ENABLED
_contextContainer = std::make_shared<facebook::react::ContextContainer const>();
_reactNativeConfig = std::make_shared<facebook::react::EmptyReactNativeConfig const>();
_contextContainer->insert("ReactNativeConfig", _reactNativeConfig);
_bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer];
bridge.surfacePresenter = _bridgeAdapter.surfacePresenter;
#endif

NSDictionary *initProps = [self prepareInitialProps];
UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:initProps];

rootView.backgroundColor = [UIColor whiteColor];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [self.reactDelegate createRootViewController];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];

[super application:application didFinishLaunchingWithOptions:launchOptions];

return YES;
}

  • (NSArray<id> *)extraModulesForBridge:(RCTBridge *)bridge
    {
    // If you'd like to export some custom RCTBridgeModules, add them here!
    return @[];
    }

/// This method controls whether the concurrentRootfeature of React18 is turned on or off.
///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return: true if the concurrentRoot feture is enabled. Otherwise, it returns false.

  • (BOOL)concurrentRootEnabled
    {
    // Switch this bool to turn on and off the concurrent root
    return true;
    }

  • (NSDictionary *)prepareInitialProps
    {
    NSMutableDictionary *initProps = [NSMutableDictionary new];
    #if RCT_NEW_ARCH_ENABLED
    initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]);
    #endif
    return initProps;
    }

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

// Linking API

  • (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
    }

// Universal Links

  • (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id> * _Nullable))restorationHandler {
    BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
    return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result;
    }

// Required to register for notifications

  • (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
    {
    [RNCPushNotificationIOS didRegisterUserNotificationSettings:notificationSettings];
    }
    // Required for the register event.
  • (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
    {
    [RNCPushNotificationIOS didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
    }
    // Required for the notification event. You must call the completion handler after handling the remote notification.
  • (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
    {
    [RNCPushNotificationIOS didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
    }
    // Required for the registrationError event.
  • (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
    {
    [RNCPushNotificationIOS didFailToRegisterForRemoteNotificationsWithError:error];
    }
    // IOS 10+ Required for localNotification event
  • (void)userNotificationCenter:(UNUserNotificationCenter *)center
    didReceiveNotificationResponse:(UNNotificationResponse *)response
    withCompletionHandler:(void (^)(void))completionHandler
    {
    [RNCPushNotificationIOS didReceiveNotificationResponse:response];
    completionHandler();
    }
    // IOS 4-10 Required for the localNotification event.
  • (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
    {
    [RNCPushNotificationIOS didReceiveLocalNotification:notification];
    }
    //Called when a notification is delivered to a foreground app.
    -(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
    {
    completionHandler(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge);
    }

#if RCT_NEW_ARCH_ENABLED

#pragma mark RCTTurboModuleManagerDelegate

  • (Class)getModuleClassFromName:(const char *)name
    {
    return RCTCoreModulesClassProvider(name);
    }

  • (std::shared_ptrfacebook::react::TurboModule)getTurboModule:(const std::string &)name
    jsInvoker:(std::shared_ptrfacebook::react::CallInvoker)jsInvoker
    {
    return nullptr;
    }

  • (std::shared_ptrfacebook::react::TurboModule)getTurboModule:(const std::string &)name
    initParams:
    (const facebook::react::ObjCTurboModule::InitParams &)params
    {
    return nullptr;
    }

  • (id)getModuleInstanceFromClass:(Class)moduleClass
    {
    return RCTAppSetupDefaultModuleFromClass(moduleClass);
    }

#endif

@end`

cortinico wrote this answer on 2022-09-24

Hi, I use expo to build native application android and ios. I have a bare workflow project and I update my expo sdk 46 from 44. After that, I update all the modules in my package.json and when I launch expo start it’s good.

Hi @tiborelsan
Thanks for reporting this issue.

It seems like this issue is actually unrelated to React Native core but related to Expo. Please open this issue against this other repository:

https://github.com/expo/expo/issues

I'll be closing this, but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
docker-compose make quick-start failed with timeout waiting for docker server 2 2022-04-15 2022-10-06
FileNotFoundError: [WinError 2] 2 2021-02-20 2022-09-30
Сравнение диапазона с nil падает на этапе выполнения 0 2021-12-03 2022-10-01
Trojan in hydrus client exe 3 2022-01-19 2022-09-18
Cannot open TGA file. 10 2021-11-24 2022-10-06
Correct package for npm 30 2018-03-27 2022-09-27
[Question] Dismiss _error, but not field errors 1 2017-10-18 2022-07-26
Unsupported driver 1 2021-09-15 2022-01-16
dokodemo-door收不到iOS推送通知 4 2021-10-18 2022-10-06
Lab: Explore Azure Security Center Needs Review 1 2021-09-30 2022-09-25
Option to only flag deprecations outside of current module 2 2021-12-09 2022-09-20
Add JUnit XML Report Output 11 2021-10-25 2022-10-06
CAS consumer incorrectly expecting username, email and user ID? 1 2011-04-30 2022-08-22
mixpanel.register not supported in Node js library 1 2020-06-22 2022-10-03
Getting Vite error on when importing `compile` 6 2021-05-18 2022-10-06
segment fault on osx 1 2020-05-07 2022-09-21
Unbound identifier involving multiple modules 0 2022-06-27 2022-09-06
[Search] Add "rated" query parameter to manga search 3 2021-04-30 2022-10-06
[AOSP 11.0 v312][Samsung Galaxy A9 2018] Unexpected bootloop while using the device. 1 2021-09-05 2022-10-05
Losing keyboard input after update 5 2021-04-29 2022-09-19
Missing videos and another location issue 9 2021-03-16 2022-08-07
Import from network path fails 0 2019-11-08 2022-09-27
[Request]: Add Documentation on "How to Deploy Strapy on Atlantic Cloud" 2 2022-04-23 2022-10-01
Can one replace a setting? 1 2021-09-17 2022-09-30
[Serve] serve run CLI command can not set host and port correctly 1 2022-09-01 2022-09-27
Tag repository if watched by vpt 0 2021-08-28 2022-09-29
`OnBlur` event is triggered after click of the DropDowns expand icon 0 2022-09-08 2022-09-15
Chart lines go outside the plot area border 1 2022-09-09 2022-09-15
TextChoice breaks long words if selected 0 2021-09-13 2022-09-21
Password(s) for Document share links and online signatures 1 2022-03-22 2022-09-20
dynamic links that created programmatically not add to firebase console ? 1 2021-09-08 2022-09-28
MagicDNS breaks if systemd-resolved.service starts after tailscaled.service holds /etc/resolv.conf 4 2022-06-25 2022-09-28
Can you update a VRM model without changing GUIDs (seems to create new GUIDs per import) 5 2022-01-17 2022-09-30
Alert cannot be made square 1 2021-10-25 2022-09-27
Incorrect indentation error inside constructors. 1 2020-09-01 2022-08-23
automatic differentiation not working in advanced examples? 13 2021-04-20 2022-10-01
Ensure path is of type `str` if `overwrite` is set 0 2021-12-05 2022-01-26
Trying to understand ptls_buffer_push_block and ptls_buffer_push 0 2021-03-09 2022-10-01
Linker error while building on macOS 1 2019-11-11 2022-10-01
How to get the number of all stored value? 0 2022-04-19 2022-10-01
Force seed node addresses for development and testing 0 2021-11-01 2022-09-27
child_removed doesn't work almost a year, maybe even more 0 2021-05-24 2022-09-21
No way to set Juypter Server URI programmatically 5 2022-02-01 2022-08-07
Add rounding and min/max arguments that are passed down to the NumericalTransformer 1 2021-06-30 2022-10-02
V9 docs: Documentation for Popover and Dialog should mention that storybook iframes break the focus trap behavior 1 2022-03-11 2022-09-26
"About the project" text 1 2021-02-15 2022-09-26
Change de default number of threads 2 2022-02-07 2022-09-25
Include memory reclaimable from slab as free. 0 2016-05-11 2021-12-26
npm run test:e2e 报错,求大佬指点 1 2021-06-09 2022-09-26
Bug: React gives me an error when stating with yarn start 9 2021-11-19 2022-10-06