Trying to run react-native cli on High Sierra 10.13.6 - react-native

Here are the versions I am using:
react-native-cli: 2.0.1
react-native: 0.64.0
Xcode 10.1
cocoapods version: 1.10.1
I keep getting this error whenever I run react-native run-ios
BUILD FAILED
The following build commands failed:
CompileC /Users/matthewharrison/Library/Developer/Xcode/DerivedData/LiveApp2-amxfqqouedceorcarxmrstlitata/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/VirtualEventBase.o /Users/matthewharrison/Desktop/dev/LiveApp2/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Is there something that I am missing? I have done everything I have seen on here with this error. Now I am starting to think it has something to do with my environment. Am I wrong for thinking that? Has anyone successfully ran the current version of react native on High Sierra?
PLEASE HELP!

You are using react-native version 0.64
In react-native version 0.64, you are required to use XCode 12
see this official announcement https://reactnative.dev/blog/2021/03/12/version-0.64#major-dependency-version-changes
Major Dependency Version Changes
- Dropped Android API levels 16-20.
The Facebook app consistently drops support for Android versions with sufficiently low usage.
As the Facebook app no longer supports these versions and is React Native’s main testing surface, React Native is dropping support as well.
- Xcode 12 and CocoaPods 1.10 are required
- Minimum Node support bumped from 10 to Node 12
- Flipper bumped to 0.75.1

Related

How to modify Podfile in an Expo-Managed React Native project

I have implemented an app that uses react-native-branch and #config-plugins/react-native-branch with the expo-managed workflow but upon building with EAS in iOS (Expo Application Services), its throwing this error:
The Swift pod `ExpoAdapterBranch` depends upon `react-native-branch`, which does not define modules.
To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries),
you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
Is there a way to do this in expo-managed workflow?
Other details of our project:
Expo SDK: v44
react-native-branch: v5.0.0
#config-plugins/react-native-branch: v1.0.2
I finally get it to build in iOS without errors by updating my react-native-branch version from 5.0.0 to 5.4.0 without any other changes to the plugin. However, expo is now giving off a warning saying that
Some dependencies are incompatible with the installed expo package version:
- react-native-branch - expected version: 5.0.0 - actual version installed: 5.4.0
If anyone has a better solution to this, I would gladly hear it. Thanks!

Android 12 crash latest react-native-track-player version

After updating app in android 12 and try to run app in android 12 device and simulator facing issue for crashing.
Here is issue.
androidx.media.session.MediaButtonReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Resolve
With use of android:exported="true" fixed issue for run app but service not start once player on in app. so again crash app.
Please check the Github for React-Native-Track-Player.
There is a Beta version for use with Android 12.
Following this question, anyone was able to patch the package to make it work on Android 12? Using a non-final version seems more buggy than just adapting the stable one.

What is purpose of latest doctor command in React Native

I was checking latest react native blog in which they introduced doctor command for react native.
the only thing i can understand from there is do envoirnment stuff for you. ?
But i don't understand the purpose.
What is exactly purpose of doctor command in react native ?
The doctor command is available as a part of React Native 0.62.This command to help you out with getting started, troubleshooting and automatically fixing errors with your development environment. The doctor command is heavily inspired by Expo and Homebrew's own doctor command with a pinch of UI inspired by Jest.
Command
npx #react-native-community/cli doctor
This command checks your environment and displays a report of the status of react native installation. Check the output carefully for other software you might need to install. For example:-
What checks are currently supported
doctor currently supports the following checks:
Node.js (>= 8.3)
yarn (>= 1.10)
npm (>= 4)
Watchman (>= 4), used for watching changes in the filesystem when in
development mode.
Specific to the Android environment:
Android SDK (>= 26), the software runtime for Android.
Android NDK (>= 19), the native development toolkit for Android.
ANDROID_HOME, environment variable required by the Android SDK setup.
And to the iOS environment
Xcode (>= 10), IDE for developing, building and shipping iOS
applications.
CocoaPods, library dependency management tool for iOS applications.
ios-deploy (optional), library used internally by the CLI to install
applications on a physical iOS device.
Please check following link for more detail
https://facebook.github.io/react-native/blog/2019/11/18/react-native-doctor
It is similar to flutter doctor. React native doctor command will fix any issue related to react-native in your project or pc. For example if you have not installed android studio, its packages or xcode necessary for running project, it will either suggest or automatically fix issues which will save hours of headache.

This release is not compliant with the Google Play 64-bit requirement (ExpoKit)

Warning in Google Play:
This release is not compliant with the Google Play 64-bit requirement
The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 1.
From August 1, 2019 all releases must be compliant with the Google Play 64-bit requirement.
Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code it needs. This avoids increasing the overall size of your app.
How to fix this problem?
What I have already tried is to add ndk.abiFilters in gradle
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
when I created apk, app started crashing immediately.
You have to upgrade your react native. For expo follow react native docs. For react native without expo You can use these commands:
sudo npm install -g react-native-git-upgrade
Then
react-native-git-upgrade

Found incompatible Titanium Modules: ti.map , version: 2.0.4

My situation
Apple SDK 7.1
Simulator version 7.1
Titanium SDK 3.3.0G.A
xCode 5.1
Titanium Studio, build: 3.4.0.201409261227
CLI version 3.4.0
Problem with ti.map modules : I try to start the app but I get this error :
I do not understand why now give me this error, I've uploaded an update of my app with the same configuration and I have not had any problems
the ti.map modules requires Titanium SDK > 3.2.0 and xCode > 5
I think you have been hit by an "auto" update.... John Jardin has described a similar issue here: http://johnjardin.ukuvuma.co.za/2014/10/03/appcelerator-fix-ti-map-ios-upgrading-titanium-3-4-0/
Please let me know if it solves your issue?
/John