RN [0.61.3 to 0.62.2] - After Flipper Installation - XCode 11: 'cstdarg' file not found Could not build module 'Darwin' Could not build module 'Foundation' etc.
See original GitHub issueEnvironment
System: OS: macOS Mojave 10.14.6 CPU: (4) x64 Intel® Core™ i5-4308U CPU @ 2.80GHz Memory: 102.59 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.19.0 - /usr/local/opt/node@10/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/opt/node@10/bin/npm Watchman: 4.9.4 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /Users/pritam/.rbenv/versions/2.7.1/bin/pod SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 25, 28, 29 Build Tools: 27.0.3, 28.0.3, 29.0.2 System Images: android-28 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.2 AI-181.5540.7.32.5056338 Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild Languages: Java: 1.8.0_191 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: react-native: Not Found
Upgrading version
Upgraded from V 0.61.3 to 0.62.2
Description
After upgrading to react native 0.62.2 , Added Flipper dependency in Podfile. Pods are getting installed successfully. I have followed all the steps from this link https://github.com/react-native-community/upgrade-support/issues/13
Error: I’m getting errors when trying to build the project in XCode 11: ‘cstdarg’ file not found Could not build module ‘Darwin’ Could not build module ‘Foundation’ etc.
Reproducible demo
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:14
Top GitHub Comments
I don’t know if this will work for others, but in my case the problem stopped after I manually edited my pbxproj file (inside the .xcodeproj directory) to remove the HEADER_SEARCH_PATHS fields (which is different than having it present with a value of “”). I had edited this field in the past, and I suppose that prevents Xcode from using the default values generated when installing pods (I’m not sure).
I’m sharing what I found as a reproducible demo:
Having the Same issue after upgrading from 63 to 64 Solved it by: 1.Setting Dead Code Stripping to YES (in TARGET ) 2. In Header Search Path made “${PODS_ROOT}/Headers/Public” - non recursive WTF