Cloudkibo / iOS

iOS Code
0 stars 0 forks source link

Learn bridging headers or linkers of iOS #89

Closed sojharo closed 9 years ago

sojharo commented 9 years ago

You should do practical of how to use C++ code in iOS application as library. You need to see if we have a library in C++ then what should we do to use it in iOS application. In this way, it would help you to integrate WebRTC library into your project. WebRTC library is written in C++. If it is not given already built then you should build it yourself.

sojharo commented 9 years ago

part of WebRTC Call milestones:

https://github.com/Cloudkibo/iOS/milestones

sumairasaeed commented 9 years ago

I was able to integrate Objective C and Swift. A bridging header was made and both were linked. However Apple document states: "You cannot import C++ code directly into Swift. Instead, create an Objective-C or C wrapper for C++ code" I will search more if I can get any wrapper for C++

sumairasaeed commented 9 years ago

No wrapper for WebRTC in Swift was found. Found a sample wrapper for c++ sample code but there were issues in building project. Rest of time was spent on documenting high level plan for ios v1 and v2.

sumairasaeed commented 9 years ago

I am exploring and found a WerbRTC in iOS sample app which uses Objective C and Swift Bridging. Details will be discussed in issue#88 : https://github.com/Cloudkibo/iOS/issues/88 Thus, no need to go into C++. We can close this issue now.