Cannot build react-native-xmpp library for IOS - ios

I can use this library for Android with success but failed to use it in IOS. I have followed the official notes for installing this library and then install XMPPFramework pods and react-native-xmpp pods. But after that still I get one of the following errors:
Either I get core data model not found errors issue#90 [total 6 errors] or
XMPPframework.h not found error - According to me, this errors is due to the same name collision of the XMPPFramework.h file found in the XMPPFramework and RNXMPP folder or
I get errors in KissXML Framework or
At last, if I mange to remove all the above errors, then I get the 'Linker failed error'.
Please help to provide the detailed documentation to use this library or if there is any alternative library for XMPP chat client that can be used in react-native for IOS. I have spent more than 2 weeks for searching the right solution for this.

2 month ago I had the same task and then chose a xmpp.js which I actually use on 3 environments in parallel right now:
React Native
Native Script
Node.js
On React Native it works under iOS/Android
It does not use any 3rd party native code like react-native-xmpp lib (e.g. XMPPFramework for iOS), so it's only pure JS. Did not have any noticeable issues while integrating it, so can recommend to try
The complete step by step guide on how to use XMPP lib in React Native app is available here https://medium.com/#connectycube/xmpp-real-time-chat-in-react-native-8d6d5d23dd47

Related

'PromisesObjC/FBLPromise+All.h' file not found when using react-native-peripheral - is there any way I can fix this?

When trying to build my react-native ios app, I am getting this error as in the picture:
enter image description here
The library for which the error is occurring is called react-native-peripheral, which I understand has not been updated in 3 years. I have tried pod install already, and I have found that the app will build without this error when I use the module in a new project with no other external libraries installed.
I am very new to react-native and app development; however if it is of any help I have a suspicion that this issue may be due to inconsistent Pod version requirements of the PromisesObjC pod.
I am using react-native-firebase for firebase (google cloud) storage, and I notice that this requires PromisesObjC (<3.0, >= 1.2), as below:
enter image description here
If you could offer any guidance that would be great. I know that it is probably not advised to still use react-native-peripheral given that it is no longer maintained, but I can't find any other library which allows me treat my iphone like a bluetooth peripheral (while the screen is turned off).
I am using cocoapods.
Thanks.

Firebase integration through Carthage gives error

I have created an SDK(framework) in Objective C, which can be integrated by other third-party apps.
My SDK uses Firebase's MLVision, MLVisionFaceModel, and other features. While integrating with any third-party app, that other app must use the Firebase framework. The SDK integration works fine when a third party app uses CocoaPods for Firebase.
But the issue occurs when I try to use Carthage instead of CocoaPods for Firebase. With Carthage, I see library loading issue at run-time. I get an error message like below.
dyld: Library not loaded: #rpath/MyFramework.framework/MyFramework
Referenced from:
/Users//Library/Developer/CoreSimulator/Devices/A3651DD6-F31D-4866-963F-12A57C575BEC/data/Containers/Bundle/Application/B4D47B47-16B0-42EC-8321-5BFD7D58DD45/FaceRectCarthage.app/FaceRectCarthage
Reason: image not found
I have been trying to solve this issue for many days, but couldn't find any solution for it. Other people have also reported similar issues at Github.
https://github.com/firebase/firebase-ios-sdk/issues/1862
It is also mentioned that the Carthage distribution is still experimental.
https://github.com/firebase/firebase-ios-sdk/blob/master/Carthage.md
Now I am really not sure whether there is any solution for my problem available or not.
I am really bound to use Carthage only for one of my projects. CocoaPods is not an option for me for that particular project.
Can anyone please help me with this? Any help would be appreciated.
Firebase is distributed as static frameworks and can not be linked into dynamic frameworks.
Firebase either needs to be linked directly into the app or MyFramework must be linked statically instead of dynamically.

How to add the libxml framework in the iOS application?

I am using the QuickBlox third party framework in my application.when i am using that application we added the framework but unfortunately it is saying that "file not found". I searched so many procedures and also i followed the same way how they explained. Still i am not able to getting the success the build
Please any one help me to resolve this error.
I am waiting for your valuable answers,Please respond quickly.

When using Twilio iOS sdk and building Cordova app openssl crashes

I am building a cordova app for iOS and I am using Twilio Plugin with the corresponding Twilio iOS SDK.
For some reason, after calling the setup method from Twilio plugin ( which then calls native code ), the app crashes.
Here is the link of stack trace:
The exception I get is EXC_BAD_ACCESS. I know that the problem may not be in cordova because i downloaded phonekit app and it does not crashes.
https://github.com/jconst/PhoneKit
This is cordova plugin I am using:
The method I call is : Twilio.Device.setup
From there, it will execute native code which is in TCPlugin.
jefflinwood - twilio_client_phonegap
I would appreciate any insight on the topic.
Unfortunately, I am still struggling with how to make both sdks work together. I am contacting opentok support to see if the can help.
(EDITED)
Problem Solved. Here is what was going on. I was using OpenTok plugin as well in my project. OpenTok also uses openssl which conflicts with the one used by twilio ( differente version).
I partialy solved this by removing openTok. Eventually Ill need to find a way to use both plugins.
The solution is simple. Just remove libssl references from project. That way, twilio will use opentok openssl libraries.
In my case, I delete libssl from twilio folder. I was using xCode and was not that simple to exclude it from project, since There is "search libraries path" which looks for all libraries.
Then if you are using Pods, make sure to do not use Pods.config, because it will also look for libssl library.
Hope that helps!

Blackberry error starting application: verification error

I'm trying to use libraries in a project. The one i'm using is blackberry's Advanced UI sample library, which i added by creating a jar of it and preverifying it.
The code works fine, no issues.
However, I need to include facebook and twitter integration.
I'm trying to use facebook sdk 0.8.25 (requires log4b.jar) and twitter ME API 1.8.
I include them in the build path and tick for them to be copied at build.
When i run the application i get
Error starting --- Module --- has verification error 2644 at offset 08e5
I've tried each jar separately, log4b give the same issue stating error 190.
any idea what i'm doing wrong?
Managed to fix my own fault with the help of this link
http://lwuit.blogspot.com/2009/01/rim-blackberry-verification-errors.html
Basically the device is os6, and the build library was 7.1 which wasn't as issue before.
But it seems the imported libs were trying to use the 7.1 api.

Resources