nubomediaTI / Kurento-iOS

Kurento Toolbox for iOS
Apache License 2.0
120 stars 76 forks source link

Getting a Build error when trying to build the framework. #1

Open andyshephard opened 8 years ago

andyshephard commented 8 years ago

The error is relating to the libWebRTC static library:

[Build log] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: for architecture x86_64 object: /Users/__/libWebRTC.a(x86_abi_support.o) malformed object (string table at offset 0 with a size of 8, overlaps Mach-O headers at offset 0 with a size of 144) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

Is there at least a method of working around this, as I'd like to integrate the Toolbox into my app for testing with a KMS instance on a Virtual Machine?

maross commented 8 years ago

It's a known issue related to the libjingle library when it's linked into a static framework, no problem when it's used as a standalone static library like in CocoaPods. See https://github.com/pristineio/webrtc-build-scripts/issues/64 The solution I found is to strip x86_64 architecture from the libWebRTC.a library, you can also download the last version of the framework (0.2.4) or using CocoaPods (KurentoToolbox).

tom1199 commented 8 years ago

After i installed all the dependencies with CocoaPod, the KurentoToolboxTestApp still can't be build, is there any specific configuration i need to do on the project ?

maross commented 8 years ago

@tom1199 The app project is still under development, for now not to rely on it

liwuking commented 8 years ago

@andyshephard Did you solve your problem How to solve the

salyasev commented 7 years ago

Anyone fixed the issue with (x86_abi_support.o) malformed object ?

janbuerling commented 7 years ago

Hello @salyasev , do you use the latest version of KurentoToolbox 0.5.0? Here are some bugs, but the libjingle was exchanged by the WebRTC framework. What a pity that was done here only half-heartedly. I would recommend that you use the 0.5.0 version and delete in the Podspec the vendort_framework "WebRTC". Also delete the WebRTC framework itself. Then you enter the following in the podspec: s.dependency 'WebRTC'

For Cocoapods, there is the WebRTC framework in the right form and this works in combination with Kurento.

Maybe take a look at our development of the Toolbox: https://github.com/ambient-innovation/Kurento-iOS

Since our questions and requests were not addressed here, we released last week a new version, which contains these adjustments and some bug fixes. We also uploaded this version at cocoapods as an AI-KurentoToolbox because at cocoapods only the Vesion 0.3.0 of the KurentoToolbox was uploaded.

Best regards, Jan