From version < 32.1 >
edited by Danmei Chen
on 2019/06/27 15:48
To version < 32.2 >
edited by jehan monnier
on 2019/07/30 15:38
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.DanmeiChen
1 +xwiki:XWiki.jehan
Content
... ... @@ -2,24 +2,16 @@
2 2  (((
3 3  (% class="col-xs-12 col-sm-8" %)
4 4  (((
5 -For basics, you can take a look at the [[README>>https://gitlab.linphone.org/BC/public/linphone-iphone/blob/master/README.md]].
5 +
6 6  
7 7  = How to use liblinphone on IOS =
8 8  
9 -In order to use liblinphone in your IOS app you will need our SDK here is how to get it.
9 +liblinphone sdk for IOS is available using Cocoapods the de-facto standard in the Apple developer world for "dependency management for Swift and Objective-C". liblinphone can also be compile from the source.
10 10  
11 -== What's new ==
11 +== Using SDK for an Objective-C Xcode project ==
12 12  
13 -As of today, integrating liblinphone sdk into a third party application is done by either compiling an sdk from the source or using a pre-built SDK from: [[here>>http://www.linphone.org/releases/ios/]] . To continue to make IOS and macOS developer live easier, we now provide a Cocoapods based integration process. Cocoapods is a "dependency manager for Swift and Objective-C" which is now a de-facto standard in the Apple developer world. With Cocoapods, integrating liblinphone to an Xcode based application can be achieved like any "Pods" without any liblinphone's specific procedures.
13 +For a project named "Myproject"
14 14  
15 -== Documentation ==
16 -
17 -You can find the liblinphone API documentation of liblinphone [[here>>http://www.linphone.org/docs/liblinphone/modules.html]].
18 -
19 -== Using SDK in an Objective-C Xcode project ==
20 -
21 -For example, the name of this project is "Myproject"
22 -
23 23  open Myproject/, use commands:
24 24  
25 25  {{code}}
... ... @@ -26,7 +26,7 @@
26 26  pod init
27 27  {{/code}}
28 28  
29 -You will get Podfile, change the context. You must add your Cocoapods repo in it. For example:
21 +Modify the generated Podfile according to your project:
30 30  
31 31  {{code}}
32 32  # Uncomment the next line to define a global platform for your project
... ... @@ -48,7 +48,7 @@
48 48  
49 49  {{/code}}
50 50  
51 - Sometimes you may need to update the liblinphone version, you can do
43 + To install our update the liblinphone version, do the following command
52 52  
53 53  {{code}}
54 54  pod repo update
... ... @@ -57,8 +57,14 @@
57 57  
58 58  == Using SDK in a Swift Xcode project ==
59 59  
60 -Do the same things as in the section: Use SDK in an Objective-C Xcode project, except for using a specific pod instead of 4.2, because swift sdk is only in beta. For example:
52 +liblinphone is also available as a pre-release version with a Swift API. To get it, replace the line:
61 61  
54 +{{box}}
55 +pod 'linphone-sdk' , '4.2'
56 +{{/box}}
57 +
58 +by
59 +
62 62  {{code}}
63 63  pod 'linphone-sdk', podspec:'https://gitlab.linphone.org/BC/public/podspec/raw/master/linphone-sdk/4.2-66-g98c8593/linphone-sdk.podspec'
64 64  {{/code}}
... ... @@ -70,14 +70,24 @@
70 70  {{/code}}
71 71  
72 72  
73 -== Using local SDK ==
71 +== Compiling the liblinphone SDK ==
74 74  
75 -You may want to use a local sdk, then change Podfile
73 +Compilation instruction re available from: [[linphone-sdk/README.md>>https://gitlab.linphone.org/BC/public/linphone-sdk/blob/master/README.md]]
76 76  
75 +To use it, in Podfile replace line:
76 +
77 +{{box}}
78 +pod 'linphone-sdk' , '4.2'
79 +{{/box}}
80 +
81 +by
82 +
77 77  {{code}}
78 -pod 'linphone-sdk', :path=> '<SDK_PATH>'
84 +pod 'linphone-sdk', path:< >'
79 79  {{/code}}
80 80  
87 +{{{where is your build directory of the linphone-sdk project, containing the linphone-sdk.podspec file and a linphone-sdk ouptut directory comprising built frameworks and resources.}}}
88 +
81 81  === Using a pre-compiled SDK ===
82 82  
83 83  If you do not need to build the SDK manually, you can download a pre-compiled SDK [[here>>http://www.linphone.org/releases/ios/]].
... ... @@ -96,6 +96,10 @@
96 96  
97 97  Follow the instructions in the linphone-sdk/README file to build the SDK.
98 98  
107 +== Documentation ==
108 +
109 +You can find the liblinphone API documentation of liblinphone [[here>>http://www.linphone.org/docs/liblinphone/modules.html]].
110 +
99 99  = Handling liblinphone log =
100 100  
101 101  In order to see liblinphone logs in your IOS app (for example in your Xcode console) follow these steps :