How to integrate Linphone into IOS Swift - Developing iOS 7 / 8 - ios

I'm new to iOS Development but I know C#, Python and Java. I'm looking to integrate Linphone into IOS project via Swift programming language.
I found a build of Linphone with all security features enabled at:
https://github.com/guardianproject/linphone-ios-secure
I build and ran the hello-world with no errors but nothing came up in the simulator.
What is the best way to start my project, I’ve created my storyboard to pass by configuration for my SIP account. I include all Lib’s and h files in my build setting and it compile with no errors.
My goal is to programmatically place a video call using Linphone.
Does anyone have a sample Swift or Objective-C XCode 6 project or code snippet?
Thanks in advance!!!!!
Stan

I've created a example Swift project on github which is using linphone SDK.
The main idea is to create Swift <-> Objective-C bridge.
https://github.com/basefx/linphone-swift

Related

How to embed/integrate a Vuforia Unity 2017.3 build OC iOS project into Swift iOS project as a framework

I met some tutorial which introduces how to integrate legacy Unity exported iOS project into Objective-C iOS project. Like:
https://www.youtube.com/watch?v=2PW7_CfIwY0
However, some of these tutorials are merge and hybrid two iOS projects into one, not a framework.
Is there a solution to integrate Unity build iOS project as a framework of a Swift iOS project?
I'm pretty sure you can't export a Unity project as an iOS framework. Your only option is to do the following:
Use this method to integrate your Unity build into an iOS project as a subview (it works for 2017.3.0f3! tested it myself)
Create an iOS framework out of the UIViewController containing the Unity view (this SO answer explains how to instantiate the VC from the framework)
That way, instead of getting a hybrid of two projects, it's one project integrated within the other as a framework

How to get framework version number which is used in my objective-c iOS project

I have two projects:
The first is an iOS SDK project which will generate mySDK.framework.
The second is an iOS SDK test project where I import and use mySDK.framework.
Currently mySDK.framework version is 2.0.30, I want to display this SDK version on test project's info page.
How can I get the framework version number I used in my project?
Thanks a lot!

iOS Framework which can support iOS7

I have very simple requirement for my iOS SDK
-Support iOS 7 and above.
-Include some swift code to my SDK
Problems:
-With iOS 8, Xcode allowed us to develop cocoa touch frameworks, but they can only be run on iOS 8 and above.
-If I create a static library, I cannot include swift code.
-I was using using Real Framework, but Real Framework does not get installed with Xcode 7.
So, What does a poor developer do ?
You can always have an alternative distribution method for your SDK for users that are targeting iOS 7.
You can offer an SDK in a single concatenated file, that is simply merging all your project source files, which user can drop into project tree and compile together with all the other source files. This applies only when you have either Swift-only or Objective-C only SDK
If SDK user uses workspaces, he may embed your SDKs .xcodeproj directly in his project
Anyway both methods require source code distribution as the user needs to compile the code from within his project. Dependency maintenance is also more difficult.
For a reference you can check how it is done in:
https://github.com/SwiftyJSON/SwiftyJSON
It is a Swift library, but integration with iOS 7 based projects is the same.
I could not find any solution for this. I compromised:
I am NOT using swift code.
I am distributing static library (.a file and a .h header file) instead of a framework. (this is to support iOS 7)

How to integrate a Xloudia's Unity3D Xcode into an Objective C project?

I want to integrate Xloudia Augmented reality in my iOS project. They don't have iOS sdk for integration but they are providing unity package for integration.
They told like that you have to export unity package and integrate it in your Xcode project.
I export unity project as a Xcode project. Now i have to add that project in my existing Xcode project. But i don't know how to add it.
Can any one please help me to integrate Xloudia in iOS?
Try this. Its not for vuforia but might help since it involves Unity into iOS
Link

Can we integrate the code of swift in applications having deployment target less than iOS 7?

As Swift supports the mix-match with objective c , then can we use it for building the applications having deployment target less than iOS 7.
from Swift Prerelease Documentation Under the Basic Setup Section what i read is :
Swift is designed to provide seamless compatibility with Cocoa and Objective-C. You can use Objective-C APIs
(ranging from system frameworksto your own custom code) in Swift, and you can use Swift APIsin Objective-C.
This compatibility makes Swift an easy, convenient, and powerful tool to integrate into your Cocoa app
development workflow.
This guide covers three important aspects of this compatibility that you can use to your advantage when
developing Cocoa apps:
● Interoperability lets you interface between Swift and Objective-C code, allowing you to use Swift classes
in Objective-C and to take advantage of familiar Cocoa classes, patterns, and practices when writing Swift
code.
● Mix and match allows you to create mixed-language apps containing both Swift and Objective-C files that
can communicate with each other.
● Migration from existing Objective-C code to Swift is made easy with interoperability and mix and match,
making it possible to replace parts of your Objective-C apps with the latest Swift features.
So after reading this the questions arrises in my mind are
Can we use swift for the applications we are currently working
on.
If the answer is no then it will be contradict to the above
explanation.
Update - As per Xcode 6 Beta 4
iOS 7 and OS X 10.9 minimum deployment target
The Swift compiler and Xcode now enforce a minimum deployment target of iOS 7 or OS X
Mavericks. Setting an earlier deployment target results in a build failure.
From Xcode 6 release note
So my previous answer(Shown below) will not be applicable to any further swift development. Swift will no longer available for iOS6 and below
Yes you can . I have tested a simple app written completely in Swift in my iOS6 device, it works perfectly fine. As apple says Swift code is binary compatible to ObjectiveC code. It uses the same compiler and runtime to create the binary.
So if you are not using any new APIs added as part of the iOS8 SDK or some swift specific api's (corresponding api is not available for ObjectiveC) your app will seamlessly work on iOS6+(Tested and working) even iOS5(not tested). Most of the APIs in the swift are just the replacement of the existing ObjectiveC api's. In fact they are same in binary.
I am not sure but YES swift support lower version of ios in to Xcode Beta if you are check in to Project-->Target-->General-->Deplyment Info for select deployment target there is drop-down with 6.0,6.1,7.0,7.1 and 8.0
So i think yes swift support lower version.
I just test the demo that created in Xcode6 with swift language select. then i open this project in to Xcode5 with deployment target 6 and that runs it means that working with lower version too.
Here it is a screenshot of swift project runs in xcode5 with ios6.1 simulator:
HERE IT IS DEMO AS WELL http://www.filedropper.com/demo_5
Yes you can . I have tested a simple app written completely in Swift in my iOS6 device, it works perfectly fine. As apple says Swift code is binary compatible to ObjectiveC code. It uses the same compiler and runtime to create the binary.
So if you are not using any new APIs added as part of the iOS8 SDK or some swift specific api's (corresponding api is not available for ObjectiveC) your app will seamlessly work on iOS6+(Tested and working) even iOS5(not tested). Most of the APIs in the swift are just the replacement of the existing ObjectiveC api's. In fact they are same in binary.
No, only iOS 7+ and OS X 10.9+.
You can import and run swift code from Objective-C like this:
#import “ProductModuleName-Swift.h”
MySwiftClass *swiftObject = [[MySwiftClass alloc] init];
[swiftObject swiftMethod];
You can check the iOS version number with this gist and only run the swift code if the version is >= 7.0.
Yes, the minimum deployment target for Xcode 6 with Swift language is iOS 6.0
Yes you can. Its not important in which language you are writing the code. Finally what matters is compiler and architecture. So, you should definitely able to deploy them to OS version less than 7.0

Resources