react-native: React Native 0.78.0 cannot run the iOS simulator properly.
Description
use xcode to run
Steps to reproduce
npx @react-native-community/cli@latest init MyApp4
React Native Version
0.78.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
$ npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.3.1
CPU: (10) x64 Apple M4
Memory: 35.52 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.12.2
path: ~/.nvm/versions/node/v20.12.2/bin/node
Yarn: Not Found
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v20.12.2/bin/npm
Watchman:
version: 2024.12.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
Android NDK: 17.1.4828580
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12700392
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.25
path: /usr/bin/javac
Ruby:
version: 3.4.1
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
Unknown type name '_START_GOOGLE_NAMESPACE_'
Reproducer
none
Screenshots and Videos
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (3 by maintainers)
I have found the reason. Because we used
DevEco-Studioto develop OpenHarmony applications. I added environment variables in.zshrc.In my case, remove the following environment configuration
You can delete the environment variables one by one to troubleshoot the problem.
I hope to help friends who encounter this problem.
Don’t forget
project/ios/Pods/glogpod installin your projectI just tried the reproducer and it worked for me.
My guess is that something went wrong when pod were installed. Please:
ios/Pods,ios/Podfile.lockandios/MyApp4.xcworkspacefilesbundle exec pod installfrom theiosfolderMyApp4.xcworkspacefile, not theMyApp4.xcodeproj@wiseqingyang this is how C/C++ modules work. Some modules requires to set some specific flags in order to properly build the module.
The
ios-configure-glog.shwas supposed to configure the module for you, but, for some reason, it is not running in your system.so by manually adding the
config.hfile, you are basically executing the script manually and applying the same output to your code.Thank you very much. You have solved my problem.