Skip to content

Could not build Objective-C module AudioManager, NitroModules, jsi, missing folly-config.h during integration #2

Description

@yunho-ju

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

When integrating react-native-nitro-audio-manager, multiple build errors appear:

  • Could not build Objective-C module 'AudioManager'
  • Could not build module 'NitroModules'
  • Could not build module 'jsi'
  • 'folly/folly-config.h' file not found during build of NitroModules (via RCT-Folly dependency)

Error chain:

node_modules/react-native-nitro-audio-manager/nitrogen/generated/ios/swift/AudioSessionCategory.swift
Could not build Objective-C module 'AudioManager'

node_modules/react-native-nitro-audio-manager/nitrogen/generated/ios/swift/AudioSessionCategoryOptions.swift
Could not build Objective-C module 'AudioManager'

node_modules/react-native-nitro-audio-manager/nitrogen/generated/ios/swift/AudioSessionMode.swift
Could not build Objective-C module 'AudioManager'

node_modules/react-native-nitro-audio-manager/nitrogen/generated/shared/c++/AudioContentType.hpp:11:10
Could not build module 'NitroModules'

node_modules/react-native-nitro-modules/cpp/core/ArrayBuffer.hpp:12:10
Could not build module 'jsi'

ios/Pods/RCT-Folly/folly/portability/Config.h:20:10
'folly/folly-config.h' file not found

Did not find header 'folly-config.h' in framework 'folly' (loaded from 'DerivedData/.../Build/Products/Debug-iphonesimulator/RCT-Folly')

All paths reference files inside node_modules or Pods. Occurs on latest stable React Native and plugin versions.

Library version

0.1.8

Environment info

- React Native: ^0.75.x
- react-native-nitro-audio-manager: latest
- iOS Simulator (Debug build)
- macOS Sonoma / latest Xcode
- CocoaPods
- Issue occurs during iOS build with RCT-Folly and NitroModules dependencies

Steps to reproduce

  1. Install react-native-nitro-audio-manager following the README installation instructions
  2. Run pod install in the iOS directory
  3. Attempt to build the project for iOS Simulator (Debug configuration)
  4. Observe build errors referencing:
    • AudioManager module not building
    • NitroModules module not building
    • jsi module not building
    • Missing folly-config.h header file

Reproducible example repository

N/A (private project, but errors triggered using RN 0.75.x and fresh install)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions