error: Invalid bitcode version (Producer: '802.0.41.0_0' Reader: '703.0.31_0') - objective-c

I know this has been asked and answered a lot of time but here is what my issue is. I am trying to integrate Google Sign In into my app, went through their steps and created a demo app and everything works fine. However I have an application which uses Facebook sign in and whenever I try to integrate Google Sign In into that app I get this error.
I am using XCode 7.3.1 (please don't bash me). Following are the questions bugging me from a couple of days.
1 - If this is an issue with XCode being oudated w.r.t the library why does the demo app I created work ? (Since all the answers on SO ask to update the XCode.)
2 - The app in which I want to integrate Google Sign In works fine with FBSDK, so why does XCode give that error when I integrate Google Sign In ?
3 - If both libraries work perfectly in two different projects why is there an issue when I try to integrate them in a single project ?
For the Google Sign In I tried with pods as well as Manual set-up, but the error still occurs. The FBSDK was not installed using pods.

Related

Expo integration with Google Sign In

I am trying to add login via Google account to my application. I have encountered a problem. Expo offers two solutions.
Google (https://docs.expo.dev/versions/latest/sdk/google/) - This can only be used in a development environment. I have used it but it does not work in a standalone application, in my case it throws the error "redirect_uri_mismatch" /
GoogleSignIn (https://docs.expo.dev/versions/latest/sdk/google-sign-in/) - Doesn't work in the emulator so I can't add it to the application because I can't fix potential errors.
My question is what the hell library should I use?
I have already tried expo eject and use Google Sign In from React Native. However I got an error that Expo does not support custom native modules. Help!
Thanks in advance.
Edit: SDK 44 Release
With the release of SDK 44, expo-google-sign-in has now been deprecated in favour of expo-auth-session OR #react-native-google-signin/google-signin packages. If you want to use the latter, you will need to follow the custom development client path.
Pre SDK 44
We've implemented Google-Sign-In using the expo-google-sign-in library. Implementation is easy enough, but you will have to test using a standalone build of your application which is the only slightly annoying piece of the puzzle.
Building a standalone build is now even easier with EAS (not sure if you have an account - but if you don't, I would highly recommend it.)
I've used a GoogleSignIn library, but I also have pro tip for everyone who will implement it.
Instead of building a project every time when you will need to test it, you can build it once and then just use upadate OTA, it's much faster.

Your Android App Bundle is signed with the wrong key. (While uploading app on google play store for the first time)

I am uploading my first release on google play store everything is working fine (app is working fine also build is successful) , I tried rebuilding the app many time with following the docs on react native official website but while uploading it is giving me above error with SHA key
I tried many solution on stackoverflow but nothing works for me as most of the solution is for second time release but mine is first time
Please help me I wasted my 6 hours on this but I am not getting solution
I got the answer
Steps:
Open the project in android studio and clear the project .
Then rebuild it after gradle sync .
Then Generate the keystore (in android studio).
Then Generate Apk (in android studio).
Setup everything again on google play console .
Then try uploading .aab file again on google play console

Recommended libraries for building an app which includes for deep linking and oauth

I have recently started to build a react-native app, which I want to build for both iOS and Android using a firebase Backend, and Branch.io/Firebase deep-linking services. I want to include in it both OAuth provided by Google and some kind of invitation link by using deep-linking. I have encountered problems in finding a way of supporting both.
It is worth mentioning that I am new to React and javascript, and have no experience in it.
I have tried using react-native-cli and tried to add OAuth to Google using firebase. I couldn't find enough documentation, so I followed a tutorial on youtube, and only managed to make it work by switching to Expo instead of react-native-cli.
Then I tried implementing some kind of invitation to groups in my app, using deep linking. I tried firebase's Dynamic links but got an error that firebase.links() is not a function and couldn't solve it due to lack of docs about it.
I then found out about react-native-branch library. It is in Alpha version in Expo so in order to use the native module I found out that I had to detach from Expo, and I wonder if there's an easier way to do it.
I've spent several days, as expected, in order to try and solve those issues. Is there a relatively simple way to do it?

ios 9 universal link is not Working?

I am facing some problem in Universal link iOS 9
So I followed the tutorial https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9 and exactly use the same values as the one provided.
if app is already installed when i tap on Universal link,than i navigate to app store but is navigate to my App.
I have already done all the needed configuration given by Apple.
The Apple Association file is also ready in the link directory: WEB_PAGE:PORT_NUMBER/apple-app-site-association
Everything seems to be setup on this side.
I've added the entitlements, updated the provisioning profile, and everything's setup.
Has anyone perfected this? Is there something I missed out?

com.facebook.sdk error 2 in distribution

I already had this working in older versions of my app but our newest update shows this error: com.facebook.sdk error 2 when logging in to facebook.
The app works fine in the simulator and device when built in development mode but the error only shows up when its in the App Store and built in distribution mode. I already found tons of information on the internet but thats not working.
I've checked:
sandbox mode is disabled
bundle id is correct
app store id is correct
facebook logging and deep linking are enabled?
Again our older version worked fine in distribution mode. Our newest version of our app uses facebook sdk 3.5.
EDIT
I unlinked facebook on my device and found out that it returns the wrong app! When pressing the login button safari opens up ask the user for permissions then returns to another app I made (practically the same app but made for a different company). So I deleted all apps on my device and the error was gone.
Double checked the app id on developers.facebook.com and the fbid in my code and thats all correct.
Why is my app returning a different app after giving permissions?
For some reason my phone was mixing up my apps. Uninstalled all and reinstalled and everything worked out fine.