When running Archive in XCode 14.2 of react native code we run into this error in AppDelegate file.
No matching function for call to 'RCTAppSetupPrepareApp'
I am using react native 0.71.7, react-native-cli: 2.0.1, and node 18.13.0
The code was supposed to be archived, but doesnt.
I was facing same error so I checked the actual version of react and previous I had when it worked last time. According to react-native upgrade helper, I see that this piece of code has changed and is no longer there. Check if this is not the case for you too.
https://react-native-community.github.io/upgrade-helper/?from=0.70.6&to=0.71.2
Related
When running on the iOS emulator any Radar function produces a "NativeModules.RNRadar is undefined" error. I have followed the SDK instructions for iOS. I have not installed for Android.
The app, which is just the basic rn template app, runs fine until I call Radar.
Start clean project using rn typescript template.
Follow SDK installation instructions from Radar docs.
Install RN package and follow installation instructions.
Call Radar from App.tsx in componentDidMount.
Update:
In the Plist screenshot you'll see an empty string for one of the privacy settings. I put in a string and it didn't change anything.
The errors in AppDelegate don't have an effect at runtime.
I was missing the # string prefix in initializeWithPublishableKey but somehow the native code was compiling.
From the accompanying GitHub thread...
Yeah, this is very odd as that native could shouldn't even compile;
the string literal in [Radar initializeWithPublishableKey:"key"]
should fail, should be [Radar initializeWithPublishableKey:#"key"].
I've noticed that react native builds can fail but the toolchain still
pushes an old version of the .app to the simulator, its worth double
checking that your build is succeeding.
I am migrating my react native app that used react-native-fcm and react-native-firebase-analytics that are now deprecated to use react-native-firebase.
The build runs fine, however when the app start, it stays on the splash screen for almost a minute (which is weird), then crashes with an error:
TypeError: 'undefined' is not an object (evaluating 'RNFIR.requestPermissions()')
There is no such expression in my code, everything is up to date.
My guess is that it might come from inside the react-native-firebase lib but I'm not sure how to fix it. Any ideas?
Make sure you remove all the libraries installed from react-native-fcm in xcode, I migrated from react-native-fcm to react-native-firebase and there were a few left over libraries that I had to manually remove.
I am using this library For Google-signin : react-native-google-signin
After Integration of the library in ios I am getting an error while running in a real device:
in signalhandler.cc file
No member named '__rip' in '__darwin_arm_thread_state64
Note: It is running fine in simulator. I am getting the error only when running in real devices.
I had this issue when I tried to run from xcode on a physical device...I saw this solution on github and it worked for me
Change this line:
return (void*)context->PC_FROM_UCONTEXT;
to
return NULL;
Check below steps which required to do in xCode:
1) In Libraries folder RNGoogleSignin.xcodeproj is there or not. If not, then drag from node module folder.
2) Add libRNGoogleSignin.a lib into Link Binary in Build Phase.
Hope it will solve your issue.
I was getting the same error as you when I was trying to run an out of box React Native app on my iPhone X. Which I am running Mojave on a MacBook Pro using Xcode 10.
I had no issues running a base React Native app in simulator but have an issue running it with a physical device. While looking in the libraries, I was not able to find RNGoogleSignin.xcodeproj that Nirmalsinh motioned.
So, after some digging I found this thread.
https://github.com/facebook/react-native/issues/16106
It looks like there is a serious bug with Xcode 10 and React Native.
They suggest to take line 78 where it throws the error and just return null and it fixes that error. As below.
ucontext_t *context = reinterpret_cast<ucontext_t *>(ucontext_in_void);
return NULL;
Don't know why that line would throw and error or what that context is actually for, but returning NULL allows me to compile it on the physical device.
Don't know if this fixes your problem, but it might help others who stumbled on to this like I have.
And if it is because its missing RNGoogleSignin.xcodeproj, then there needs to be another way to add that library in as it was there in my folder. Unfortunately, I don't know where you could find it to install it.
Have followed the instructions from here:
https://facebook.github.io/react-native/docs/embedded-app-ios.html#content
I am able to install required react sub specs and react spec with pod install
I was able to run the local react server to serve the bundles as well.
But I am seeing the following issues which is preventing my app from starting up in the iOS simulator.
/.../node_modules/react-native/React/Executors/RCTContextExecutor.m:560:7: Comparison of function 'JSGlobalContextSetName' not equal to a null pointer is always true
/.../node_modules/react-native/React/Base/RCTRootView.m:230:17: Method override for the designated initializer of the superclass '-initWithFrame:' not found
Can anybody help decyphering whats going on? Seems like it is specific to the RCTRootView implementation inside react library.
i figured the problem was with where i started the react-native app. It was not running from the project root. fixing that fixed the starting of the app in the simulator and these warnings werent the real root cause.
I am using Phonegap 2.4.0 for iOS. when i create a cordova project and run it in iPad5.1 simulator i got this error
semantic issue expected method to read dictionary element not found on
object of type 'Nsdictionary *'
i following this tutorial guide_getting-started_ios
and i don't know where i made mistake.
Check your xcode version - it needs to be 4.5 or above.
Rebuild your cordova / phonegap project after upgrading xcode and the error should go away.
If you have an updated version of Xcode, make sure your project/platforms/ios/build directory wasn't removed somehow.