From version < 44.1 >
edited by Simon Morlat
on 2020/06/23 14:06
To version < 44.2 >
edited by Simon Morlat
on 2020/06/23 14:20
< >
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -4,11 +4,11 @@
4 4  (((
5 5  
6 6  
7 -= How to use liblinphone on IOS =
7 += Adding the liblinphone dependency to your iOS project =
8 8  
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 compiled from the sources.
9 +Liblinphone for iOS is available using [[Cocoapods>>https://cocoapods.org]], the de-facto standard in the Apple developer world for "dependency management for Swift and Objective-C". Liblinphone can also be compiled from the sources.
10 10  
11 -== Using the SDK for an Objective-C Xcode project ==
11 +Using Cocoapods
12 12  
13 13  For a project named "Myproject"
14 14  
... ... @@ -47,18 +47,12 @@
47 47  pod install
48 48  {{/code}}
49 49  
50 -== Using SDK in a Swift Xcode project ==
50 +== ==
51 51  
52 -liblinphone is also available with a Swift API. To use it, import the swift module in your project
52 +And you're done.
53 53  
54 -{{code}}
55 -import linphonesw
56 -{{/code}}
54 +Some alpha (development versions) of liblinphone may also be available. To get them, replace the line:
57 57  
58 -== Using Beta version ==
59 -
60 -liblinphone is also available as a pre-release version. To get it, replace the line:
61 -
62 62  {{box}}
63 63  pod 'linphone-sdk' , '4.3'
64 64  {{/box}}
... ... @@ -75,35 +75,34 @@
75 75  pod install
76 76  {{/code}}
77 77  
78 -== Compiling the liblinphone SDK ==
72 +== Compiling linphone-sdk ==
79 79  
80 -Compilation instructions are available at: [[linphone-sdk/README.md>>https://gitlab.linphone.org/BC/public/linphone-sdk/blob/master/README.md]]
74 +Linphone-sdk is the name of the git project that contains liblinphone and all its dependencies.
81 81  
82 -To use it, in Podfile replace line:
76 +Compilation instructions of the SDK are available at: [[linphone-sdk/README.md>>https://gitlab.linphone.org/BC/public/linphone-sdk/blob/master/README.md]]
83 83  
84 -{{box}}
85 -pod 'linphone-sdk' , '4.3'
86 -{{/box}}
78 +Once done, cocoapods needs to be invoked to update the Xcode workspace to use your locally built linphone-sdk, as follows:
87 87  
88 -by
89 -
90 -{{code}}
91 -pod 'linphone-sdk', path:'<path to linphone-sdk-ios>'
80 +{{code language="sh"}}
81 +PODFILE_PATH=<path to linphone-sdk-ios> pod install
92 92  {{/code}}
93 93  
94 -{{{where <path to linphone-sdk-ios> is your build directory of the linphone-sdk project, containing the linphone-sdk.podspec file and a linphone-sdk output directory comprising built frameworks and resources.}}}
84 +{{{where <path to linphone-sdk-ios> is your build directory of the linphone-sdk project, containing the linphone-sdk.podspec file and a linphone-sdk output directory comprising built frameworks and resources.
85 +}}}
95 95  
96 -followed by:
87 += Using liblinphone =
97 97  
89 +Liblinphone has a C API, suitable to be used with Objective-C, and a Swift API. To use in swift, import the liblinphone swift module in your source file using
90 +
98 98  {{code}}
99 -pod install
92 +import linphonesw
100 100  {{/code}}
101 101  
102 -== Documentation ==
95 +== API documentation ==
103 103  
104 104  You can find the liblinphone C API documentation [[here>>https://www.linphone.org/snapshots/docs/liblinphone/multilang/reference/c/index.html]].
105 105  
106 -For Swift, online documentation is available [[here>>https://www.linphone.org/snapshots/docs/liblinphone/swift/index.html]]
99 +For Swift, online documentation is available [[here>>https://www.linphone.org/snapshots/docs/liblinphone/swift/index.html]] .
107 107  
108 108  = Handling liblinphone log =
109 109