Skip to content

fix: Remove FOLLY_NO_CONFIG flags from .pbxproj - #154

Closed
mrousavy wants to merge 1 commit into
mainfrom
mrousavy-patch-1
Closed

fix: Remove FOLLY_NO_CONFIG flags from .pbxproj#154
mrousavy wants to merge 1 commit into
mainfrom
mrousavy-patch-1

Conversation

@mrousavy

Copy link
Copy Markdown
Member

Summary:

Since RN ships prebuilt binaries now, those flags are no longer needed in the .pbxproj file and can safely be removed (I just built NitroExample on RN 0.80 without those flags successfully)

See react/react-native#52366 for more info

Changelog:

[IOS] [FIXED] - Removed unused FOLLY_NO_CONFIG from Xcode project

Test Plan:

Build an app without those flags and see if it works

Since RN ships prebuilt binaries now, those flags are no longer needed in the `.pbxproj` file and can safely be removed (I just built NitroExample on RN 0.80 without those flags successfully)

See react/react-native#52366 for more info

@cortinico cortinico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine. Pinging @cipolleschi for a confirmation

@cortinico

Copy link
Copy Markdown
Member

@mrousavy can you also open a pick request for this?

@mrousavy

Copy link
Copy Markdown
Member Author

Sorry wdym by pick request?

@cortinico

Copy link
Copy Markdown
Member

Sorry wdym by pick request?

See here: https://github.com/reactwg/react-native-releases/#what-is-a-pick-request

@mrousavy

Copy link
Copy Markdown
Member Author

ok done: reactwg/react-native-releases#1038

@mrousavy

Copy link
Copy Markdown
Member Author

Actually, I just built a blank new RN 0.80.1. again with my changes here and it fails to build because of some usage of glog. I have no idea how this can be related to Folly, but I think we still need those folly flags for now - maybe we should try migrating away from glog since that's deprecated anyways..?

2025-07-16T13:17:41.3047670Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-debug/react/debug/react_native_assert.h:54:10: note: while building module 'glog' imported from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-debug/react/debug/react_native_assert.h:54:
2025-07-16T13:17:41.3140320Z #include <glog/logging.h>
2025-07-16T13:17:41.3240730Z          ^
2025-07-16T13:17:41.3342120Z <module-includes>:1:9: note: in file included from <module-includes>:1:
2025-07-16T13:17:41.3412330Z #import "glog-umbrella.h"
2025-07-16T13:17:41.3423130Z         ^
2025-07-16T13:17:41.3424130Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/glog/glog-umbrella.h:13:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/glog/glog-umbrella.h:13:
2025-07-16T13:17:41.3424900Z #import "glog/logging.h"
2025-07-16T13:17:41.3425160Z         ^
2025-07-16T13:17:41.3430410Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/glog/glog/logging.h:512:1: error: import of module 'glog.glog.log_severity' appears within namespace 'google'
2025-07-16T13:17:41.3531410Z #include "glog/log_severity.h"
2025-07-16T13:17:41.3632100Z ^
2025-07-16T13:17:41.3733070Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/glog/glog/logging.h:509:1: note: namespace 'google' begins here
2025-07-16T13:17:41.3807460Z namespace google {
2025-07-16T13:17:41.3908280Z ^
2025-07-16T13:17:41.4009410Z <module-includes>:1:9: note: in file included from <module-includes>:1:
2025-07-16T13:17:41.4110720Z #import "React-RCTAppDelegate-umbrella.h"
2025-07-16T13:17:41.4213130Z         ^
2025-07-16T13:17:41.4323600Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React_RCTAppDelegate/React-RCTAppDelegate-umbrella.h:13:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React_RCTAppDelegate/React-RCTAppDelegate-umbrella.h:13:
2025-07-16T13:17:41.4429360Z #import "RCTAppDelegate.h"
2025-07-16T13:17:41.4541750Z         ^
2025-07-16T13:17:41.4651620Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTAppDelegate.h:11:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTAppDelegate.h:11:
2025-07-16T13:17:41.4753550Z #import "RCTDefaultReactNativeFactoryDelegate.h"
2025-07-16T13:17:41.4783910Z         ^
2025-07-16T13:17:41.4785200Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTDefaultReactNativeFactoryDelegate.h:9:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTDefaultReactNativeFactoryDelegate.h:9:
2025-07-16T13:17:41.4801860Z #import "RCTReactNativeFactory.h"
2025-07-16T13:17:41.4802290Z         ^
2025-07-16T13:17:41.4803330Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTReactNativeFactory.h:18:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTAppDelegate/RCTReactNativeFactory.h:18:
2025-07-16T13:17:41.4804490Z #import <React/RCTComponentViewFactory.h>
2025-07-16T13:17:41.4804970Z         ^
2025-07-16T13:17:41.4806020Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewFactory.h:10:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewFactory.h:10:
2025-07-16T13:17:41.4807110Z #import <React/RCTComponentViewDescriptor.h>
2025-07-16T13:17:41.4807600Z         ^
2025-07-16T13:17:41.4811850Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewDescriptor.h:10:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewDescriptor.h:10:
2025-07-16T13:17:41.4812940Z #import <React/RCTComponentViewProtocol.h>
2025-07-16T13:17:41.4813200Z         ^
2025-07-16T13:17:41.4814160Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewProtocol.h:10:9: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-RCTFabric/React/RCTComponentViewProtocol.h:10:
2025-07-16T13:17:41.4815300Z #import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
2025-07-16T13:17:41.4815640Z         ^
2025-07-16T13:17:41.4816950Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/componentregistry/ComponentDescriptorProvider.h:10:10: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/componentregistry/ComponentDescriptorProvider.h:10:
2025-07-16T13:17:41.4818190Z #include <react/renderer/core/ComponentDescriptor.h>
2025-07-16T13:17:41.4818490Z          ^
2025-07-16T13:17:41.4819490Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/ComponentDescriptor.h:12:10: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/ComponentDescriptor.h:12:
2025-07-16T13:17:41.4820690Z #include <react/renderer/core/Props.h>
2025-07-16T13:17:41.4821010Z          ^
2025-07-16T13:17:41.4822020Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/Props.h:11:10: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/Props.h:11:
2025-07-16T13:17:41.4823050Z #include <react/renderer/core/PropsParserContext.h>
2025-07-16T13:17:41.4823450Z          ^
2025-07-16T13:17:41.4824520Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/PropsParserContext.h:13:10: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/PropsParserContext.h:13:
2025-07-16T13:17:41.4825760Z #include <react/utils/ContextContainer.h>
2025-07-16T13:17:41.4826060Z          ^
2025-07-16T13:17:41.4827030Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-utils/react/utils/ContextContainer.h:18:10: note: in file included from /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-utils/react/utils/ContextContainer.h:18:
2025-07-16T13:17:41.4828050Z #include <react/debug/react_native_assert.h>
2025-07-16T13:17:41.4828340Z          ^
2025-07-16T13:17:41.4828890Z /Users/runner/work/nitro/nitro/example/ios/Pods/Headers/Public/React-debug/react/debug/react_native_assert.h:54:10: error: could not build module 'glog'
2025-07-16T13:17:41.4829610Z #include <glog/logging.h>
2025-07-16T13:17:41.4829930Z          ^
2025-07-16T13:17:41.4830500Z /Users/runner/work/nitro/nitro/example/ios/NitroExample/AppDelegate.swift:10:8: error: could not build Objective-C module 'React_RCTAppDelegate'
2025-07-16T13:17:41.4831220Z import React_RCTAppDelegate
2025-07-16T13:17:41.4831630Z        ^

I'm closing this PR since we should probably keep the flags in the template for now, but we definitely have to remove them from the library template.
Is there an official RN library template already?
I already created PRs to remove them from CRNL/Bob and Nitro template.

@mrousavy mrousavy closed this Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants