Skip to content

upgrade my React Native proj form V 76.6 to 80 getting error _ctype.h:70:10 Could not build module 'DarwinFoundation' #356

@JHA32

Description

@JHA32

Upgrading from: 0.76.6
Upgrading to: 0.80.0

🚨 Build Failure after upgrading React Native 0.76.6 → 0.80: Cannot build Apple system modules (DarwinFoundation, UIKit, CoreFoundation, etc.)

Xcode Version: 16.2
iOS Simulator: iOS 18.2
macOS: Sonoma
Build target: iOS Simulator (command + B)
Build version 16C5032a
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79

❗️ Issue Summary

After upgrading my project from React Native 0.76.6 to 0.80, the iOS build fails when compiling system headers. Xcode cannot build multiple system-level Apple modules.
Note : project is run and upgrade successfully for android
The first error:

_ctype.h:70:10 Could not build module 'DarwinFoundation'

Then a cascade of module failures:

Could not build module '_float'
while building module 'UIKit'
Could not build module '_stdint'
Could not build module '_math'
CoreServices.framework/Headers/UTCoreTypes.h:19:10 Could not build module 'CoreFoundation'
usr/include/os/workgroup_base.h:8:10 Could not build module 'sys_types'
iPhoneSimulator18.2.sdk/usr/include/xpc/xpc.h:6:10 Could not build module 'os_object'
iPhoneSimulator18.2.sdk/usr/include/sys/qos.h:28:10 Could not build module 'os_availability'

The build fails before any project files are compiled.

❗️ What I Already Tried

Clean build folder (Cmd+Shift+K)

Delete DerivedData

pod deintegrate / pod install

Disabled Hermes

Set platform :ios, '16.0'

Reinstalled node_modules

Reinstalled Pods

Reinstalled Xcode 16

Reset Simulator

None of these had any effect — the same failure appears.

🧠 Important Observation

These errors come entirely from Apple’s system SDK (iOS 18.2 Simulator), not from project code:

_stdint, _math, sys_types, os_object, os_availability

DarwinFoundation

CoreFoundation

UIKit

i am try to fix the issues now tell me what should i suppose do..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions