React native Twitter Signin release build issue - react-native

I am using the react-native-twitter-signin plugin for twitter login in iOS, but I am not able to build the release build in iOS as it shows:
Apple Mach o- linker issue:
/Documents/Example-fnshwaxexazdtybaedpmgfxfynrx/Build/Intermediates.noindex/ArchiveIntermediates/Example/BuildProductsPath/Release-iphoneos/libRNTwitterSignIn.a
The same application is running perfectly in Debug Mode on iOS:
I have already linked the libRNTwitterSignin.a under linked binary with libraries
Does anyone know a solution to this problem?

I faced the same issue, finally did like below.
please add RNTwitterSignIn to Target Dependences of build phases.
It will fix that.

Related

Fabric issue App not showing after following instruction

I have carefully followed the instruction from fabric (https://fabric.io/kits/ios/crashlytics/manual-install) to install crashlytics in my app. However I cannot select my app after the instruction since my app is not showing. I have tried most of the solution that has been given in this question here (Crashlytics in iOS won't proceed past "Build Your Project" in Fabric app)
But I still failed to get my app in fabric.
I am using react native to develop my app and using Xcode Version 10.2.1
Fabric/Firebaser here - If you've gone through all the necessary instructions, try cleaning your project first before building and running again to try to get your app up on your dashboard. And if you haven't seen it, here are some instructions specifically for setting up react native apps with Crashlytics: https://www.npmjs.com/package/react-native-fabric#crashlytics-usage). And make sure that if you haven't, set the Debug Information Format to DWARF with dSYM file for both debug and release as specified in that SO post you linked.
You can also see more debug information about Fabric if you set Fabric to debug mode in your initialization statement: https://docs.fabric.io/apple/fabric/advanced-settings/debugging.html. Check to see if the settings requests are being made to Fabric or if there is anything unusual.
If you're still having trouble, reach out to support(at)fabric(dot)io with your app's bundle ID and support will be able to help you out more.

Adding React Native to an existing iOS app - fails to compile

I followed the official guide on adding React Native to existing iOS apps (Swift).
pod install finished successfully and I got to the point when I import React in a Swift file and try to compile the app.
The build fails with an error in the yoga dependency. Xcode cannot find the C++ standard library:
However, then I click "Go to definition" on <algorithm>, Xcode can find it:
These are my project settings (I tried a few different combinations):
I'm fairly new to iOS development, so this might be a simple issue with our existing project, Xcode, Command Line Tools, or my machine. I Googled around a bit, no luck so far.
Any help from someone familiar with iOS development is appreciated! When we find the solution I'd like to update the official guide so others don't get stuck adding React Native to their app.
I believe your issue is fixed by this PR https://github.com/facebook/react-native/pull/17764, which reduces the number of exported Yoga headers to those that are actually needed to be able to build and as part of that removes headers that require C++ and its stdlib.

React Native Dev Setup in Team

I am currently working in a team developing a react native IOS application, we are all doing this for the first time. I am unable to find any information on development setup with many people working on the same code and we are running into many issues requiring each member to have their own project, and one person with the master project is having to copy and paste code over, any pointers much appreciated!!
Initial project build is successful, the problem occurs when someone else clones the repository and attempts a build. Too many errors to go over and different with each machine. Is there some setup in X-Code or something I am missing with regards to working in a team environment with react native?
Because React native use many libraries like module to help build app fastly and reuse.So, I suggest this workflow to build mobile application with RN.
- Use GIT as system version control
- Use IDE (Android Studio, Xcode) to help auto build and fix a lot build error when your team install new libraries and use `react-native link` (ex: react-native-router-flux,...)
- Just push js file to repository and other member can pull it and reload js file.
- Do it and take a look some repository on github with tutorials
Cheer!
Using Yarn rather than Node package manager resolved a majority of the issues.

Adding third party Library to the native project makes the "IBMMobilefirst Platform "not found?

I want to add "Crashlytics" and "Appsflyer" framework in the IBM Mobilefirst iOS Project. After adding the Framework it shows that the " 'IBMMobileFirstPlatformFoundationHybrid/MFPMainViewController.h' file not found".
Tried with both Cocoapods and Framework, but getting the same error.
But its fine with native project.
Sample Project is available in
https://www.dropbox.com/s/r8u54gfrmofqzhf/native.zip?dl=0
Please suggest how to resolve it.
Try with Adding "$(SRCROOT)/frameworks" in your Frameworks Search Path under Build Settings of your Xcode Project, I hope it should resolve the issue.
Also i have added Crashlytics and Appsflyer in MFP 7.1 Hybrid Project and I did not find any issues. Sample application you can find here.

how add Android project as library or add arr in android moudle project

I need to use a third-party SDK which must be added as aar or android project library.
I tried to unzip the aar and copy the /lib and /res files to my titanium android module project, but it didn't work.
the error looks like this:
The developer of the SDK tell me check out a link which is FATAL EXCEPTION: java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$layout
I don't know how to solve it, hope someone could help me, thanks
Because Titanium is a Javascript cross platform tool to build native apps, you will need to write a wrapper to get a native functionality to work.
You can check out the documentation how to this on the Appcelerator website.
Unfortunately you can't just drop in a native component.