Multiple commands produce error in react native project build in xcode 12.4 - ios

I am trying to add react native vector icons into my react native CLI project and linking it manually with iOS. First, it was giving me some weird errors about "React/RCTDefine.h not found" but I managed to get it but now it is giving Multiple command produce error as you can see below
I tried multiple solutions from the stack overflow but nothing seems to work for me, I do not know if I am doing them correctly or not, If any expert can help me in this regard please, Thanks in advance

Related

React Native + ARKit = "React/RCTConvert.h not found"

I am trying to use React Native with ARKit for the first time and I ran into a problem.
What I did:
(in Terminal)
react-native init myApp
cd myApp
npm install --save react-native-arkit
react-native link react-native-arkit
(in XCode)
Open myApp workspace under myApp/ios
Assign my Team
Trying to Build on a device
What I got:
React/RCTConvert.h' file not found
in color-grabber.m
I found a lot of references to the same problem online (dating back to 2017+), none of the fixes they offered seemed to work for me.
Truly appreciate any help!
Just want to provide an update if anyone is interested.
After a long array of manual updates to the settings I managed to fix most of the issues. However, given that the package is not supported, I gave up on it.
The way to go seems Viro React which is now open source and is pretty actively supported. Unfortunately, it is not suitable for my purposes (I need a very small footprint), so I will try using iOS native components instead.

Images not showing in react native application in release mode

React native application is working absolutely fine in debug mode but running in release mode image are not visible. I am using react-native#0.62.2.
I tried some solution from react-native iOS app not showing static assets (images) after deploying
but still not working.
I get this in xcode console
EDIT:
Found out that the error is because of a package "react-native-webview-quilljs". Installing it doesn't create problem but when importing it. After import app will run but editor will not render as well as all the images are not rendering.
This thread solved the issue for me: https://github.com/facebook/react-native/issues/29279#issuecomment-658244428
You can find that file in your node_modules folder. It seems like there was an issue with the Image module and they didn't fix it until the most recent version of React Native at the time of posting. Hope it works for you. Maybe someone who understands it more can elaborate on why exactly it solves the issue.

How to fix Undefined symbol error in Xcode?

I am developing a React-Native application, which has both an Android and iOS version.
When working in Xcode, I have had several errors, which included duplicated files and Mach-O Linker errors.
Right now I'm struggling with the following error.
This is the complete log with the error.
I also append some screenshots of my configuration.
It's a bit hard to deduce the problem with the given info (I appreciate you have tried to give a lot info but even still the error is so vague, it can be caused by multitudes of things)
If I were you, I would do the following
Create a bran new react-native app (lets call it buildMyIosApp for example)
Build and run that
Observe it building for ios (building buildMyIosApp through xcode works)
Change the react and react-native versions on buildMyIosApp to be the same as your project
Re-build buildMyIosApp
Compare the project setup of buildMyIosApp to your project
Hopefully you would be able to find the issue that way.

Lexical or preprocessor issue in react native while building ios app <React/RCTUtils.h> not found

When I am trying to build my ios app in xcode, the build is failing due to lexical or preprocessor issue the error shows up like this
This was a problem specific to the react-native-device-info module.
For your specific case you may try v1.6.1 or higher (currently at 2.0 as of May 21, 2019) of the library and that should fix things for you.
For others interested more generally in the problem, this is a react-native library that uses native code, so it has an XCode project embedded within it for use in react-native after you run react-native link react-native-device-info. Unfortunately, the library was not including any directories in it's header search path, so it was of course unable to find the header files for the react-native objects it was using locally.
A library user proposed a change that fixed that problem for tvOS, and I extended the change to cover iOS as well, and now the library no longer generates errors like this for iOS or tvOS targets.
Perhaps someone with a similar issue may find the specific changes required for the fix useful in their projects

DllNotFoundException in Mono on a Mac

I'm trying to build my unity applicaton on a mac but I have the following error:
DllNotFoundException: libMonoPosixHelper.dylib
I've googled around but can't seem to find a fix for this issue. Has anyone ever come across this before? How did you get rid of the error?
I guess it's because you're using Unity3d Free, correct?
Dynamic including of Dll's is not a feature of the free-version, you'll ned to buy Unity Pro
If your not including a dll on your own, then maybe the installation is broken

Resources