Skip to content

iOS build error: "folly/folly-config.h file not found" #591

@AlexAlexandre

Description

@AlexAlexandre

How were you trying to build the app?

Hey guys, hope find all you well...

So recently I updated my app to React native 0.78 and was able to build the app with nitro "^0.23.0" as well...
the problem is I had to add firebase at my project and this starts the problem... to use firebase I had to update my Podfile to install dependencies like this

# Ensure frameworks are linked statically
use_frameworks! :linkage => :static

# Optional, you can add this if you face issues, but it's usually not necessary:
$RNFirebaseAsStaticFramework = true

my headache started there. I started face some troubles with nitro and update to the new version 0.24.1 which cause the problem related.

I'm using "react-native-nitro-sqlite": "^9.1.4", and to be honest I don't know if the problem is with nitro-sqlite or nitro-modules

Image

If you think this issue should not be open here, and there's no problem with the build. Please disregard this issue. I just wanna check if this is an issue related to the new nitro version, since changed a lot of things with the new RN version. Maybe the BorrowingReference.hpp is moved or removed, IDK... I'll try remove firebase and test again the new version of the library ASAP.
Thanks for the amazing work you guys have done with this lib anyway.

Full build logs

/Users/alexjunior/Library/Developer/Xcode/DerivedData/EmotionDiaryApp-ftysafapmbfggkefqpkdskqkjzjg/Build/Products/Debug-iphonesimulator/NitroModules/NitroModules.framework/Headers/ArrayBuffer.hpp:10:10: error: 'BorrowingReference.hpp' file not found
#include "BorrowingReference.hpp"

/Users/alexjunior/Documents/lex-tec/emotionDiary/EmotionDiaryApp/ios/Pods/RCT-Folly/folly/portability/Config.h:20:10: error: 'folly/folly-config.h' file not found
#include <folly/folly-config.h>

/Users/alexjunior/Library/Developer/Xcode/DerivedData/EmotionDiaryApp-ftysafapmbfggkefqpkdskqkjzjg/Build/Products/Debug-iphonesimulator/RNNitroSQLite/RNNitroSQLite.framework/Headers/BatchQueryCommand.hpp:11:10: error: could not build module 'NitroModules'
#include <NitroModules/JSIConverter.hpp>

<unknown>:0: error: could not build Objective-C module 'RNNitroSQLite'

Project dependencies

{
...
"@react-native-firebase/app": "^21.11.0",
"@react-native-firebase/messaging": "^21.11.0",
"react": "19.0.0",
"react-native": "0.78.0",
"react-native-nitro-modules": "^0.24.1",
"react-native-nitro-sqlite": "^9.1.4",
...
}

Nitro Modules Version

0.24.1

Nitrogen Version

No response

Target platforms

iOS

Operating system

MacOS

Can you build the Nitro Modules Example app?

Yes, I can successfully build the Example app here

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    build/setupIssue is related to building Nitro Modules or autolinking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions