Build Error on react-native-navigation first time - react-native

I have tried to build a react-native app using react-native-navigation. I've went through all the setup stages, but when I try and run the app, I get the following error:
** BUILD FAILED **
The following build commands failed:
CompileC /www/MyProject/ios/build/Build/Intermediates/ReactNativeControllers.build/Debug-iphonesimulator/ReactNativeControllers.build/Objects-normal/x86_64/RCCNavigationController.o RCCNavigationController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Any idea what can be causing this?

I thought i was the only one getting this error bro.
After upgrading to react-native 0.31 today, react-native-navigation was having problems. It was working just fine before.
Adding runtime header wouldn't solve the problem. It would let the build go through successfully but the build crashed on me in runtime.
I'm currently considering rebuilding scene transition entirely using react-native-router-flux.

Related

Error when trying to build a React Native application with EAS

I'm trying to build a React Native application using Expo and rnmapbox/maps module, which includes some custom native code.
Up until now, I could build the application without any problems, for Android at least, which is my target platform. But suddenly, it stopped working and the following error log is displayed:
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin class 'org.gradle.api.plugins.BasePlugin'.
> Could not find method maven() for arguments [build_1quotit9ccucu377qnhf7kv5h$_run_closure1$_closure3$_closure5#4a87f9f7] on configuration ':app:archives' of type org.gradle.api.in
ternal.artifacts.configurations.DefaultConfiguration.
What is the problem and how can I possibly fix it?
The problem appears to be with Mapbox. We are experiencing the same error as you on our Android builds under eas build. We just removed the rnmapbox/maps dependency and commented out all the relevant code and our builds are passing.
I added the "image": "latest" field to eas.json configuration and it seemed to fix the problem.
Apparently, there was a bug with older versions.

Library linking issue after upgrading to React Native 0.70.3

We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?
Downgrade to atmost react-native 0.69
Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.

Cannot get Turbo Native Example to build on M1 Mac

I am trying to get a simple RN app to build accessing a Turbo Native ObjC++ module. I followed the example in the Turbo Native docs (https://reactnative.dev/docs/next/the-new-architecture/pillars-turbomodules). I did comment out fabric_enabled and flipper lines from the Podfile and that got rid of some warnings. But I still get this error and I do not know how to solve it:
The following build commands failed:
CompileC /Users/MCHALTX1/Library/Developer/Xcode/DerivedData/adcConsoleApp-eudyfqiurftvwseixxuzruouwnqy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/rtn-dcs.build/Objects-normal/arm64/RTNDcs.o /Users/MCHALTX1/testdev/reactProjs/MyProject/MyProject/node_modules/rtn-dcs/ios/RTNDcs.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'rtn-dcs' from project 'Pods')
(1 failure)
I am stuck as to how to fix this. Oh and Xcode version=14.0.1, react-native version=0.70.3

React native error on view pager adding in iOS android works fine how to resolve it?

"#react-native-community/viewpager": "^2.0.2",
The following build commands failed:
CompileC /Users/innoappstech/Library/Developer/Xcode/DerivedData/base-bdidefvmpxcbkoesztljqiocxpqn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-viewpager.build/Objects-normal/x86_64/ReactViewPagerManager.o /Users/innoappstech/Desktop/projects/base/node_modules/#react-native-community/viewpager/ios/ReactViewPagerManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
As I need it for scrollview and it works in android only this version. So getting error on iOS. SO anybody can provide me solution. I tried so many things and changing pod files dependencies and other things but nothing worked for me.
I was able resolve the issue using the latest version 5.0.11.
"#react-native-community/viewpager": "^5.0.11",
But this package has been deprecated.
And a new package is available at react-native-pager-view

Cannot find module 'babel-plugin-graphql-tag' when running App with React Native 0.59.1

I ran into that strange issue after upgrading to React Native 0.59.1 and trying to run my app on iOS devices in xcode.
Loading dependency graph, done.
error: bundling failed: Error: Cannot find module 'babel-plugin-graphql-tag' from '/Users/me/react_projects/my-app'
- If you want to resolve "graphql-tag", use "module:graphql-tag"
I tried to install some potentially missing packages but it does not help. I can post my package.json if that helps.
Many thanks in advance for any help!