当使用Twilio iOS sdk和构建Cordova应用程序openssl崩溃 [英] When using Twilio iOS sdk and building Cordova app openssl crashes
问题描述
我正在为iOS建立cordova应用程式,而且我使用Twilio外挂程式和相应的
这是我使用的cordova插件:
我调用的方法是: Twilio.Device.setup
从那里,它将执行TCPlugin中的本地代码。
< twilio_client_phonegap
我将对此话题有任何见解。
不幸的是,我还在努力两个sdks一起工作。
解决方案很简单。只需从项目中删除libssl引用。这样,twilio将使用opentok openssl库。
在我的例子中,我从twilio文件夹中删除libssl。我使用xCode,并不是那么简单,从项目中排除它,因为有搜索库路径,寻找所有的库。
那么如果你使用Pods,确保不要使用Pods.config,因为它也会寻找libssl库。
希望有帮助!
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)
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!
这篇关于当使用Twilio iOS sdk和构建Cordova应用程序openssl崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!